Skip to main content
POST

Authorizations

Authorization
string
header
required

Developer Key (Melody Key) tied to your organization. Your Organization ID and Developer Key are issued to you by Melody — contact support@getmelody.io to request them. Used to create session tokens via POST /api/sessions/v2, and to link devices via the X-Org-Key header on POST /device/otp/confirm/v2.

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"