Skip to main content
POST
Generate One-Time Password

Authorizations

Authorization
string
header
required

Short-lived session token obtained from POST /api/sessions/v2. Send it as Authorization: Bearer <session_token> together with the X-Device-Key: <device-key> header identifying the target device.

Headers

X-Device-Key
string
required

Device Key (4 BIP39 words) identifying the target device. Obtain it from POST /device/otp/confirm/v2.

Pattern: ^[a-z]+-[a-z]+-[a-z]+-[a-z]+$
Example:

"orbit-ranch-silver-tomato"

Response

200 - application/json

OK

otp
string

The generated one-time password.

Example:

"123456"

expires_at
string

The expiration time of the one-time password.

Example:

"2022-01-01T00:00:00Z"