latestOpenAPI 3.1.02026-08-22154287463.4 KB

858365328f92

Credentials

Create a credential

Create a new credential for storing login information.

post/credentials

Request body

domainstring required

Target domain this credential is for

namestring required

Unique name for the credential within the project

sso_providerstring

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.

totp_secretstring

Base32-encoded TOTP secret for generating one-time passwords. Used for automatic 2FA during login.

valuesobject required

Field name to value mapping (e.g., username, password)

Example request

{
  "domain": "netflix.com",
  "name": "my-netflix-login",
  "sso_provider": "google",
  "totp_secret": "JBSWY3DPEHPK3PXP",
  "values": {
    "password": "mysecretpassword",
    "username": "user@example.com"
  }
}

Response

Credential created successfully

created_atstring date-time required

When the credential was created

domainstring required

Target domain this credential is for

has_totp_secretboolean

Whether this credential has a TOTP secret configured for automatic 2FA

has_valuesboolean

Whether this credential has stored values (email, password, etc.)

idstring required

Unique identifier for the credential

namestring required

Unique name for the credential within the project

sso_providerstring nullable

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.

totp_codestring

Current 6-digit TOTP code. Only included in create/update responses when totp_secret was just set.

totp_code_expires_atstring date-time

When the totp_code expires. Only included when totp_code is present.

updated_atstring date-time required

When the credential was last updated

value_keysstring[]

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.

Example response

{
  "created_at": "2025-01-15T10:30:00Z",
  "domain": "netflix.com",
  "has_values": true,
  "id": "cred_abc123xyz",
  "name": "my-netflix-login",
  "sso_provider": "google",
  "totp_code": "847291",
  "totp_code_expires_at": "2025-01-15T10:30:30Z",
  "updated_at": "2025-01-15T10:30:00Z",
  "value_keys": [
    "username",
    "password"
  ]
}