Exchange a grant for tokens
이 페이지는 아직 귀하의 언어로 번역되지 않았습니다. 현재 작업 중이므로 곧 다시 확인해 주십시오.
RFC 6749 §3.2 token endpoint. Supports the device_code grant (RFC 8628) and the refresh_token grant. Authenticated by the fixed confidential device-flow client (injected server-side). Does not require a Bearer token.
post
/v1/auth/tokenBody
application/jsonOne of 2 shapes:
grant_typestringrequiredThe OAuth grant type. Must be urn:ietf:params:oauth:grant-type:device_code.
device_codestringrequiredThe device_code from the device-authorization response.
Body
application/x-www-form-urlencodedOne of 2 shapes:
grant_typestringrequiredThe OAuth grant type. Must be urn:ietf:params:oauth:grant-type:device_code.
device_codestringrequiredThe device_code from the device-authorization response.
Response
application/json200· Tokens issued.
access_tokenstringrequiredtoken_typestringrequiredexpires_inintegerrequiredOther properties3
refresh_tokenstringscopestringid_tokenstring400· Invalid or unsupported grant (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_uristring이 내용이 도움이 되었나요?
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.