For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.
Start a device authorization request
RFC 8628 device authorization endpoint. Initiates the device flow and returns a device_code, user_code, and verification URIs for the user to approve out of band, then poll the token endpoint. When offline_access is requested, openid is also required.
post
/v1/auth/device-authorizationBody
application/jsonscopestringSpace-delimited OAuth scopes to request. When offline_access is requested, openid is also required.
Body
application/x-www-form-urlencodedscopestringSpace-delimited OAuth scopes to request. When offline_access is requested, openid is also required.
Response
application/json200· Device authorization started.
device_codestringrequireduser_codestringrequiredverification_uristringrequiredexpires_inintegerrequiredOther properties2
verification_uri_completestringintervalinteger400· Invalid request (RFC 6749 §5.2 OAuth error).
errorstringrequiredOther properties3
error_descriptionstringerror_hintstringerror_uristring401· Client authentication failed (RFC 6749 §5.2 OAuth error).
errorstringrequiredOther properties3
error_descriptionstringerror_hintstringerror_uristring500· Server error (RFC 6749 §5.2 OAuth error).
errorstringrequiredOther properties3
error_descriptionstringerror_hintstringerror_uristringWas this helpful?