createCredential
Store a new credential.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Display name for the credential. |
credential_type | CredentialType | Yes | Type of credential. |
credential | object | Yes | The credential data. Shape depends on credential_type. |
Returns CredentialResponse
getCredentials
List all credentials. Credential values are never returned — only metadata.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
page | number | No | undefined | Page number. |
page_size | number | No | undefined | Results per page. |
Returns CredentialResponse[]
getCredential
Get a single credential’s metadata by ID.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
credentialId | string | Yes | The credential ID. |
Returns CredentialResponse
deleteCredential
Delete a credential.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
credentialId | string | Yes | The credential ID to delete. |
sendTotpCode
Send a TOTP (time-based one-time password) code to Skyvern during a run that requires 2FA. Call this when your webhook or polling detects that Skyvern is waiting for a TOTP code.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
totp_identifier | string | Yes | The identifier matching the totp_identifier used in the task/workflow. |
content | string | Yes | The TOTP code value. |
task_id | string | No | Associate with a specific task run. |
workflow_id | string | No | Associate with a specific workflow. |
workflow_run_id | string | No | Associate with a specific workflow run. |
source | string | No | Source of the TOTP code. |
expired_at | string | No | When this code expires (ISO 8601 format). |
type | OtpType | No | OTP type. |

