Skip to main content
POST
/
auth
/
device-approve
Device Approve
curl --request POST \
  --url https://api.hyperspell.com/auth/device-approve \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "device_code": "<string>",
  "user_key": "<string>",
  "as_admin": false
}
'
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API Key or JWT User Token. If using an API Key, set the X-As-User header to act as a specific user. A JWT User Token is always scoped to a specific user.

Body

application/json
device_code
string
required
user_key
string | null
as_admin
boolean
default:false

Response

Successful Response

success
boolean
required
message
string
required