Skip to main content
POST
/
device
/
otp
/
generate
{
  "otp": "123456",
  "expires_at": "2022-01-01T00:00:00Z"
}

Authorizations

Authorization
string
header
required

Device Token for SDK operations. Obtain via: GET /api/haptics/device/device_token Format: {device_id}-{1|2}-{random} Note: ApiToken (from POST /device/otp/confirm) can also be used for most SDK endpoints.

Body

application/json

The body is of type any.

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"