API · Device login
Start a device login: show the person user_code and verification_uri, then poll.
POST /v1/device/code
| |
|---|
| Request | POST /v1/device/code |
| Operation id | device.code |
| Cost | Free |
| Auth | None. |
| Field | Type | Required | Description |
|---|
client_name | string | yes | Shown to the person approving, and the new key’s name. |
| Status | Meaning | Schema |
|---|
200 | Started. | DeviceAuthorization |
400 | Invalid input. | Error |
429 | Too many device logins from this network. | Error |
| Field | Type | Description |
|---|
device_code | string | Secret. Poll POST /v1/device/token with it. |
user_code | string | |
verification_uri | string | |
verification_uri_complete | string | |
expires_in | integer | |
interval | integer | |
Errors use one shape everywhere; see Errors for every code and what to do.