Poll for Device Token
POST
Poll for the result of a device authorization. Call this endpoint repeatedly (respecting the
interval) until the user approves, denies, or the code expires.
No authentication required. This is a public endpoint.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
device_code | string | Yes | Device code from /auth/device/code response |
client_id | string | Yes | Must match the original request’s client_id |
Polling Behavior
| Response Code | Meaning | Action |
|---|---|---|
authorization_pending | User hasn’t acted yet | Wait interval seconds and retry |
slow_down | Polling too fast | Increase interval by 5 seconds |
access_denied | User denied | Stop polling, show error |
expired_token | Code expired | Stop polling, start new flow |
Success Response Fields
| Field | Type | Description |
|---|---|---|
api_key | string | The API key (dm_sk_live_xxx) |
key_id | string | Key identifier for management |
organization.id | number | Organization ID |
organization.name | string | Organization name |
organization.slug | string | Organization URL slug |