device

Poll a device authorization

Polls a device authorization. Returns pending until the user approves, then the API token exactly once.

post/api/users/device/token

Request

  • Base URL: https://api.hostim.dev
  • URL: https://api.hostim.dev/api/users/device/token
  • Auth: none required

Request body

deviceCodestring required

Response

Current state of the authorization

status'pending' | 'approved' | 'denied' | 'expired' required
tokenstring

Bearer API token; present only when status is approved.

Changes

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