Creating a password credential
Use thePOST /v1/credentials endpoint to create a password credential:
The API response never includes sensitive fields like
password or totp secret. Only non-sensitive metadata is returned.Adding two-factor authentication
If the site requires 2FA, configure thetotp_type field. Three options:
| Method | totp_type | How it works |
|---|---|---|
| Authenticator App | "authenticator" | Paste the TOTP secret key in the totp field. Skyvern generates codes locally on demand. Fully automated with no delay. Preferred when the site supports it. |
"email" | Provide the email address in totp_identifier. Skyvern waits for you to push the code via the TOTP API. | |
| Text Message | "text" | Provide the phone number in totp_identifier. Same push-based flow as Email. |
Finding your TOTP secret key
Finding your TOTP secret key
The secret key is the base32-encoded string behind the QR code you’d scan in an authenticator app. Most password managers let you view it:
- Bitwarden: Edit the login → TOTP field → copy the key
- 1Password: Edit the login → One-Time Password → copy the secret
- LastPass: Edit the login → Advanced Settings → copy the TOTP secret
- Site settings: Many sites show a “Can’t scan?” link during 2FA setup that reveals the text key
secret= parameter from the otpauth://totp/...?secret=BASE32KEY URI.Using credentials in a workflow
In the Login block configuration, pass thecredential_id as a parameter. Skyvern fills in the username and password automatically, and handles 2FA if configured.
See the Workflow Parameters documentation for details on credential parameters.
Listing credentials
Retrieve all credentials for your organization:Getting a specific credential
Retrieve credential metadata by ID:Updating credentials
To update a credential’s sensitive data (username, password, TOTP secret), use the update endpoint:For security, saved passwords and secrets are never retrieved, so you must re-enter all sensitive fields when updating.
Deleting credentials
Delete a credential permanently:TOTP / 2FA Setup
Push verification codes and manage 2FA for Email and Text methods
Test Credentials
Test credentials with automated login flows