MCP

Exchange or refresh an MCP OAuth token

Public-client token endpoint. Client secrets and Authorization headers are not supported. Authorization-code exchange requires the PKCE verifier; device clients poll no faster than the returned interval and handle authorization_pending, slow_down, access_denied, and expired_token; refresh tokens rotate on every successful use.

post/credits/mcp/oauth/token

Request

  • Base URL
    https://api.paywithlocus.com/api
  • URL
    https://api.paywithlocus.com/api/credits/mcp/oauth/token
  • Auth
    none required

Request body application/x-www-form-urlencoded

OR
OR

Response

Resource-bound bearer token

access_tokenstring required
token_type'Bearer' required
expires_ininteger required
refresh_tokenstring

Present when offline_access was granted; rotated on every refresh.

scopestring required
resourcestring uri required

Changes

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