Start a browser sign-in
/auth/device- Base URL
https://api.chartnaut.com/v1- Auth
- None
- Operation ID
startDeviceLogin
No key needed. Show user_code and open verification_uri_complete; the person approves it
in Chartnaut while signed in, then poll pollDeviceLogin every interval seconds.
30 starts a minute per IP.
Request bodyapplication/json, optional#
client_namestringShown on the approval page and in the key's name.
expires_in_daysintegerHow long the key works once approved. The person approving can shorten it, never lengthen it. Any other value is 400 invalid_request with details.allowed.
scopesarray of stringOpt-in scopes the key should carry on top of the defaults (apps:write lets it create and manage your developer projects and their Test keys). The approval page names them. Any other value, a default scope included, is 400 invalid_request with details.allowed.
Responses#
200OKapplication/json
Grant started.
device_codestringSecret; keep it and poll with it.
user_codestringverification_uristring (uri)verification_uri_completestring (uri)expires_inintegerintervalintegerexpires_in_daysintegerThe key lifetime asked for. The approver may shorten it.
scopesarray of stringEvery scope the key will carry once approved, the defaults plus any opt-in asked for.
ErrorAny other statusapplication/json
Error.
errorobjectRequiredShow fields
codestringRequiredStable. Branch on this, never on message.
messagestringRequireddetailsobjectdocs_urlstring (uri)request_idstring