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.
/v1/auth/tokenBody
application/jsongrant_typestringrequiredThe OAuth grant type. Must be urn:ietf:params:oauth:grant-type:device_code.
device_codestringThe device_code from the device-authorization response.
refresh_tokenstringThe refresh_token issued by a previous token or refresh grant.
Body
application/x-www-form-urlencodedgrant_typestringrequiredThe OAuth grant type. Must be urn:ietf:params:oauth:grant-type:device_code.
device_codestringThe device_code from the device-authorization response.
refresh_tokenstringThe refresh_token issued by a previous token or refresh grant.
Response
application/jsonaccess_tokenstringrequiredtoken_typestringrequiredexpires_inintegerrequiredrefresh_tokenstringscopestringid_tokenstringerrorstringrequirederror_descriptionstringerror_hintstringerror_uristringerrorstringrequirederror_descriptionstringerror_hintstringerror_uristringerrorstringrequirederror_descriptionstringerror_hintstringerror_uristringこれは役に立ちましたか?