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.

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/token

Body

application/json
grant_typestringrequired

The OAuth grant type. Must be urn:ietf:params:oauth:grant-type:device_code.

device_codestring

The device_code from the device-authorization response.

refresh_tokenstring

The refresh_token issued by a previous token or refresh grant.

Body

application/x-www-form-urlencoded
grant_typestringrequired

The OAuth grant type. Must be urn:ietf:params:oauth:grant-type:device_code.

device_codestring

The device_code from the device-authorization response.

refresh_tokenstring

The refresh_token issued by a previous token or refresh grant.

Response

application/json
200· Tokens issued.
access_tokenstringrequired
token_typestringrequired
expires_inintegerrequired
Other properties3
refresh_tokenstring
scopestring
id_tokenstring
400· Invalid or unsupported grant (RFC 6749 §5.2 OAuth error).
errorstringrequired
Other properties3
error_descriptionstring
error_hintstring
error_uristring
401· Client authentication failed (RFC 6749 §5.2 OAuth error).
errorstringrequired
Other properties3
error_descriptionstring
error_hintstring
error_uristring
500· Server error (RFC 6749 §5.2 OAuth error).
errorstringrequired
Other properties3
error_descriptionstring
error_hintstring
error_uristring

이 내용이 도움이 되었나요?