Skip to main content
Credentials are stored securely and referenced by ID (cred_…); their secret values are never returned. Every method here also accepts request_options (Python) or a final requestOptions argument (TypeScript) to override the timeout, retries or headers for one call; see request options.

create_credential

Creates a new credential for the current organization
Parameters
str
required
Name of the credential
"password" | "credit_card" | "secret"
required
Type of credential to create
CreateCredentialRequestCredential
required
The credential data to store
CredentialVaultType | None
Which vault to store this credential in. If omitted, uses the instance default. Use this to mix Skyvern-hosted and custom credentials within the same organization.Sent only when you pass it
CreateCredentialRequestProxyLocation | None
Optional proxy location for this credential’s pinned proxy identity.Sent only when you pass it
str | None
Optional advanced reuse key for this credential’s pinned proxy identity.Sent only when you pass it
bool | None
Rotate the Skyvern-managed proxy sticky-session id when updating this credential.Sent only when you pass it
str | None
Login page URL used during the credential testSent only when you pass it
Returns CredentialResponse · TypeScript Promise<CredentialResponse>
Example

get_credential

Retrieves a specific credential by its ID
Parameters
str
required
The unique identifier of the credentialTypeScript: credentialId
Returns CredentialResponse · TypeScript Promise<CredentialResponse>
Example

get_credentials

Retrieves a paginated list of credentials for the current organization
Parameters
int | None
Page number for paginationDefault: None
int | None
Number of items per pageDefault: None
CredentialVaultType | None
Filter credentials by vault type (e.g. ‘skyvern’, ‘custom’, ‘bitwarden’, ‘azure_vault’)Default: None
"password" | "credit_card" | "secret" | None
Filter credentials by type (e.g. ‘password’, ‘credit_card’, ‘secret’)Default: None
Case-insensitive search across credential name, username, secret label, and card detailsDefault: None
Returns list[CredentialResponse] · TypeScript Promise<CredentialResponse[]>
Example

update_credential

Overwrites the stored credential data (e.g. username/password) while keeping the same credential_id.
Parameters
str
required
The unique identifier of the credential to updateTypeScript: credentialId
str
required
Name of the credential
"password" | "credit_card" | "secret"
required
Type of credential to create
CreateCredentialRequestCredential
required
The credential data to store
CredentialVaultType | None
Which vault to store this credential in. If omitted, uses the instance default. Use this to mix Skyvern-hosted and custom credentials within the same organization.Sent only when you pass it
CreateCredentialRequestProxyLocation | None
Optional proxy location for this credential’s pinned proxy identity.Sent only when you pass it
str | None
Optional advanced reuse key for this credential’s pinned proxy identity.Sent only when you pass it
bool | None
Rotate the Skyvern-managed proxy sticky-session id when updating this credential.Sent only when you pass it
str | None
Login page URL used during the credential testSent only when you pass it
Returns CredentialResponse · TypeScript Promise<CredentialResponse>
Example

delete_credential

Deletes a specific credential by its ID
Parameters
str
required
The unique identifier of the credential to deleteTypeScript: credentialId
Returns None · TypeScript Promise<void> Example

send_totp_code

Forward a TOTP (2FA, MFA) email or sms message containing the code to Skyvern. This endpoint stores the code in database so that Skyvern can use it while running tasks/workflows.
Parameters
str
required
The identifier of the TOTP code. It can be the email address, phone number, or the identifier of the user.
str
required
The content of the TOTP code. It can be the email content that contains the TOTP code, or the sms message that contains the TOTP code. Skyvern will automatically extract the TOTP code from the content.
str | None
The task_id the totp code is for. It can be the task_id of the task that the TOTP code is for.Sent only when you pass it
str | None
The workflow ID the TOTP code is for. It can be the workflow ID of the workflow that the TOTP code is for.Sent only when you pass it
str | None
The workflow run id that the TOTP code is for. It can be the workflow run id of the workflow run that the TOTP code is for.Sent only when you pass it
str | None
An optional field. The source of the TOTP code. e.g. email, sms, etc.Sent only when you pass it
datetime | None
The timestamp when the TOTP code expiresSent only when you pass it
OtpType | None
Deprecated compatibility field. Skyvern auto-detects the OTP type from content, so this value does not constrain extraction.Sent only when you pass it
Returns TotpCode · TypeScript Promise<TotpCode>
Example