auth

Device Token

PUBLIC, polled by the CLI. While the user hasn't approved -> 400 "authorization_pending". Once approved -> the access token + a refresh token IN THE BODY (one-shot: the device_code is consumed). On expiry -> 400 "expired_token".

post/v1/auth/device/token

Request

  • Base URL: https://api.sonenta.dev
  • URL: https://api.sonenta.dev/v1/auth/device/token
  • Auth: none declared

Request body

device_codestring required

Response

Successful Response

access_tokenstring required
token_typestring
expires_atstring date-time required
refresh_tokenstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.