API · Device login
Poll for the API key. Errors are the RFC 8628 codes.
POST /v1/device/token
| Request | POST /v1/device/token |
| Operation id | device.token |
| Cost | Free |
| Auth | None. |
Poll every 5 seconds. authorization_pending: keep polling. slow_down: add 5 seconds to your interval. access_denied: the person declined; stop. expired_token: start again.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
device_code | string | no | |
grant_type | "urn:ietf:params:oauth:grant-type:device_code" | no |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Approved: the new API key, shown once. | DeviceToken |
400 | authorization_pending, slow_down, access_denied, expired_token, or invalid input. | Error |
DeviceToken fields
| Field | Type | Description |
|---|---|---|
api_key | string | |
key_id | string | |
account_id | string |
Errors use one shape everywhere; see Errors for every code and what to do.