mcp

POST /mcp/oauth/token/ — Exchange code or refresh token for access token.

post/mcp/oauth/token/

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/mcp/oauth/token/
  • Auth: one of:
    • API key in header X-Api-Key
    • API key in header X-Secret-Key

Request body

grant_type'authorization_code' | 'refresh_token' required
codestring
refresh_tokenstring
client_idstring required
client_secretstring required
redirect_uristring

Response

OK

access_tokenstring required
token_type'Bearer' required
expires_ininteger required
refresh_tokenstring
scopestring required

Changes

No recorded changes to this operation across all 1 revision of this API.