curl --request POST \
--url https://api.skyvern.com/v1/credentials/totp \
--header 'Content-Type: application/json' \
--data '
{
"totp_identifier": "john.doe@example.com",
"content": "Hello, your verification code is 123456",
"task_id": "task_123456",
"workflow_id": "wpid_123456",
"workflow_run_id": "wr_123456",
"source": "email",
"expired_at": "2025-01-01T00:00:00Z",
"type": "totp"
}
'{
"totp_identifier": "john.doe@example.com",
"content": "Hello, your verification code is 123456",
"totp_code_id": "<string>",
"code": "<string>",
"organization_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"task_id": "task_123456",
"workflow_id": "wpid_123456",
"workflow_run_id": "wr_123456",
"source": "email",
"expired_at": "2025-01-01T00:00:00Z",
"type": "totp",
"otp_type": "totp"
}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.
curl --request POST \
--url https://api.skyvern.com/v1/credentials/totp \
--header 'Content-Type: application/json' \
--data '
{
"totp_identifier": "john.doe@example.com",
"content": "Hello, your verification code is 123456",
"task_id": "task_123456",
"workflow_id": "wpid_123456",
"workflow_run_id": "wr_123456",
"source": "email",
"expired_at": "2025-01-01T00:00:00Z",
"type": "totp"
}
'{
"totp_identifier": "john.doe@example.com",
"content": "Hello, your verification code is 123456",
"totp_code_id": "<string>",
"code": "<string>",
"organization_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"task_id": "task_123456",
"workflow_id": "wpid_123456",
"workflow_run_id": "wr_123456",
"source": "email",
"expired_at": "2025-01-01T00:00:00Z",
"type": "totp",
"otp_type": "totp"
}Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
The identifier of the TOTP code. It can be the email address, phone number, or the identifier of the user.
"john.doe@example.com"
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.
"Hello, your verification code is 123456"
The task_id the totp code is for. It can be the task_id of the task that the TOTP code is for.
"task_123456"
The workflow ID the TOTP code is for. It can be the workflow ID of the workflow that the TOTP code is for.
"wpid_123456"
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.
"wr_123456"
An optional field. The source of the TOTP code. e.g. email, sms, etc.
"email"
The timestamp when the TOTP code expires
"2025-01-01T00:00:00Z"
Optional. If provided, forces extraction of this specific OTP type (totp or magic_link). Use this when the content contains multiple OTP types and you want to specify which one to extract.
totp, magic_link "totp"
Successful Response
The identifier of the TOTP code. It can be the email address, phone number, or the identifier of the user.
"john.doe@example.com"
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.
"Hello, your verification code is 123456"
The skyvern ID of the TOTP code.
The TOTP code extracted from the content.
The ID of the organization that the TOTP code is for.
The timestamp when the TOTP code was created.
The timestamp when the TOTP code was modified.
The task_id the totp code is for. It can be the task_id of the task that the TOTP code is for.
"task_123456"
The workflow ID the TOTP code is for. It can be the workflow ID of the workflow that the TOTP code is for.
"wpid_123456"
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.
"wr_123456"
An optional field. The source of the TOTP code. e.g. email, sms, etc.
"email"
The timestamp when the TOTP code expires
"2025-01-01T00:00:00Z"
Optional. If provided, forces extraction of this specific OTP type (totp or magic_link). Use this when the content contains multiple OTP types and you want to specify which one to extract.
totp, magic_link "totp"
The type of the OTP code.
totp, magic_link