Skip to main content
POST
/
device
/
otp
/
confirm
Confirm One-Time Password (v1)
curl --request POST \
  --url https://api.getmelody.io/device/otp/confirm \
  --header 'Content-Type: application/json' \
  --data '
{
  "otp": "123456"
}
'
{
  "token": "eyJhbGciOiJIUzI1NiIs..."
}

Body

application/json
otp
string
required

The 6-digit one-time password displayed on the device.

Example:

"123456"

Response

OK

token
string

The device API token (long-lived JWT).

Example:

"eyJhbGciOiJIUzI1NiIs..."