API · Device login
Approve a device login for one of your accounts, or decline it.
POST /v1/device/approve
| Request | POST /v1/device/approve |
| Operation id | device.approve |
| Cost | Free |
| Auth | Dashboard session: Authorization: Bearer <session_token>. API keys are refused. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
user_code | string | yes | |
account_id | string | no | Required when approving. |
approve | boolean | yes |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Decided. | |
400 | Invalid input. | Error |
401 | Not signed in. | Error |
403 | Only owners and admins can approve logins for an account. | Error |
404 | No pending login with that code, or not your account. | Error |
Errors use one shape everywhere; see Errors for every code and what to do.