ChartnautDocs

Start a browser sign-in

POST/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#

object
client_namestring

Shown on the approval page and in the key's name.

expires_in_daysinteger

How 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.

One of 7 30 90Default 90
scopesarray of string

Opt-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.

object
device_codestring

Secret; keep it and poll with it.

user_codestring
Example BCDF-GHJK
verification_uristring (uri)
verification_uri_completestring (uri)
expires_ininteger
Example 600
intervalinteger
Example 3
expires_in_daysinteger

The key lifetime asked for. The approver may shorten it.

One of 7 30 90
scopesarray of string

Every scope the key will carry once approved, the defaults plus any opt-in asked for.

ErrorAny other statusapplication/json

Error.

object · Error
errorobjectRequired
Show fields
codestringRequired

Stable. Branch on this, never on message.

One of unauthorized forbidden_scope plan_limit not_found version_conflict script_invalid in_use out_of_coverage unknown_instrument ambiguous_instrument unsupported_timeframe run_not_finished rate_limited busy invalid_request forbidden conflict not_in_library confirmation_required not_shared not_installable not_implemented authorization_pending slow_down access_denied expired_token internal
messagestringRequired
detailsobject
docs_urlstring (uri)
request_idstring