Skip to main content
POST
Create a project credential

Authorizations

Authorization
string
header
required

API key authentication using Bearer token format

Path Parameters

projectId
string
required

Project ID or shortId

Body

application/json
kind
enum<string>
required
Available options:
login
label
string
required
Required string length: 1 - 50
username
string
required
Required string length: 1 - 255
password
string
required
Minimum string length: 1
authMethod
enum<string>
Available options:
password,
google,
github
description
string

When to use this account: its type, enabled features/plans, and the environments it exists in. The agent reads this when choosing between credentials.

Maximum string length: 500
totpSecret
string

Authenticator (TOTP/MFA) secret: the base32 setup key or otpauth:// URI from the account's MFA enrollment. The agent generates one-time codes from it during runs. Never returned; responses expose only hasTotpSecret.

Required string length: 1 - 512

Response

Credential created

credential
object
required