Skip to main content
POST
Hand a run a sign-in code
When a site sends a code by text message or a phone app, the run waits up to 3 minutes. The app shows “Enter the code sent to your phone” in the run panel; from code you call this endpoint. The run types the code into the page and carries on. If nobody sends a code in time, the run fails with needs_user.kind = "otp_sms". You get 409 when the run is not waiting for a code.

Authorizations

Authorization
string
header
required

API key with the vd_sk_ prefix. Create keys from Settings, API Keys in the dashboard.

Path Parameters

run_id
string
required

Body

application/json
code
string
required

The sign-in code the site sent (4–10 letters or digits).

Example:

"123456"

Response

The run has the code.

run_id
string
accepted
boolean