Finish a browser sign-in
POST
/auth/token- Base URL
https://api.chartnaut.com/v1- Auth
- None
- Operation ID
pollDeviceLogin
Until approved: 400 with authorization_pending (keep polling), slow_down (add 2 s to
the interval), access_denied or expired_token (stop). Approved: 200 with a key named
"CLI on <client_name>", created at this moment and returned once. The key expires at
expires_at: the expires_in_days asked for, or less if the approver shortened it.
After that every call answers 401 unauthorized ("API token expired.").
Request bodyapplication/json#
object
device_codestringRequiredResponses#
200OKapplication/json
Approved.
object
tokenstringnamestringexpires_atstring (date-time)When the key stops working (RFC 3339).
expires_in_daysintegerThe key's lifetime in days.
ErrorAny other statusapplication/json
Error.
object · Error
errorobjectRequiredShow fields
codestringRequiredStable. Branch on this, never on message.
messagestringRequireddetailsobjectdocs_urlstring (uri)request_idstring