Create a credential
Create a new credential for storing login information.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Request to create a new credential
Target domain this credential is for
"netflix.com"
Unique name for the credential within the project
"my-netflix-login"
Field name to value mapping (e.g., username, password)
If set, indicates this credential should be used with the specified SSO provider (e.g., google, github, microsoft). When the target site has a matching SSO button, it will be clicked first before filling credential values on the identity provider's login page.
"google"
Base32-encoded TOTP secret for generating one-time passwords. Used for automatic 2FA during login.
"JBSWY3DPEHPK3PXP"
Response
Credential created successfully
A stored credential for automatic re-authentication
When the credential was created
"2025-01-15T10:30:00Z"
Target domain this credential is for
"netflix.com"
Unique identifier for the credential
"cred_abc123xyz"
Unique name for the credential within the project
"my-netflix-login"
When the credential was last updated
"2025-01-15T10:30:00Z"
Whether this credential has a TOTP secret configured for automatic 2FA
false
Whether this credential has stored values (email, password, etc.)
true
If set, indicates this credential should be used with the specified SSO provider (e.g., google, github, microsoft). When the target site has a matching SSO button, it will be clicked first before filling credential values on the identity provider's login page.
"google"
Current 6-digit TOTP code. Only included in create/update responses when totp_secret was just set.
"847291"
When the totp_code expires. Only included when totp_code is present.
"2025-01-15T10:30:30Z"
The field names stored in this credential's values (e.g., username, password). Values themselves are never returned. Included on single-credential responses (create, get by id or name, update); omitted from list responses.