Skip to main content
POST
Send a code for a login
For a forwarding rule on your phone or in your mail: you do not need to know which run asked. The run signing in with this login takes the code. With none signing in yet, it is kept 10 minutes, and only a code that arrived after the sign-in started is used. Send just the code, or the whole message (up to 2,000 characters). The code is read out of it. The answer is 202 with {"login_id": "...", "accepted": true}. 404 for a login that is not yours. 422 when no code is found in the text. Needs logins:use.
To set this up on an iPhone, make a Shortcuts automation: When I get a message containing code, then Get contents of URL with method POST, the Authorization header, and a JSON body whose code is the message. On Android, use any automation app that can send a web request when a text arrives. The Vault shows each login’s exact address under How sign-in codes work. See Two-step sign-in.

Authorizations

Authorization
string
header
required

API key with the vd_sk_ prefix, as Authorization: Bearer vd_sk_.... Create keys in Settings → API Keys.

Headers

Idempotency-Key
string

Any unique string (such as your order id). Resending the same request with the same key within 24 hours returns the first answer (with Idempotent-Replayed: true) and does nothing twice; the same key with a different request is a 422 idempotency_key_reused.

Required string length: 1 - 255

Path Parameters

login_id
string
required

Body

application/json
code
string
required

The sign-in code, or the whole message it came in (the code is read out of it).

Required string length: 4 - 2000

Response

Successful Response

login_id
string
required
accepted
boolean
default:true