create_credential
Store a new credential.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | str | Yes | Display name for the credential. |
credential_type | CredentialType | Yes | Type of credential. |
credential | CreateCredentialRequestCredential | Yes | The credential data. Shape depends on credential_type. |
Returns CredentialResponse
get_credentials
List all credentials. Credential values are never returned — only metadata.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
page | int | No | None | Page number. |
page_size | int | No | None | Results per page. |
Returns list[CredentialResponse]
get_credential
Get a single credential’s metadata by ID.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
credential_id | str | Yes | The credential ID. |
Returns CredentialResponse
delete_credential
Delete a credential.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
credential_id | str | Yes | The credential ID to delete. |
send_totp_code
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 | str | Yes | The identifier matching the totp_identifier used in the task/workflow. |
content | str | Yes | The TOTP code value. |
task_id | str | No | Associate with a specific task run. |
workflow_id | str | No | Associate with a specific workflow. |
workflow_run_id | str | No | Associate with a specific workflow run. |
source | str | No | Source of the TOTP code. |
expired_at | datetime | No | When this code expires. |
type | OtpType | No | OTP type. |

