OAuth2 token endpoint
Changed onExchanges a single-use authorization code for an Aura Historia access token (RFC 6749 §4.1.3). The request body must be application/x-www-form-urlencoded. Client authentication is performed via client_id / client_secret form fields. PKCE code verification (RFC 7636) is mandatory: code_verifier must produce the code_challenge supplied to the authorize endpoint.
The issued access token is non-expiring by default (same lifetime as tokens created via POST /api/v1/me/access-tokens). Successful responses also include a short-lived third_party_exchange_code that can be redeemed once via GET /api/v1/oauth/tokens/by-third-party-code/{thirdPartyCode}. The exchange code expires after 60 seconds and is deleted on first use.
Request
- Base URL: https://api.stage.aura-historia.com
- URL: https://api.stage.aura-historia.com/api/v1/oauth/token
- Auth: none declared
Response
Access token issued successfully.
Example response
{
"access_token": "aurahistoria_abcdefghijk_verylongtokenvalue",
"token_type": "BEARER",
"scope": "product-listings:write",
"third_party_exchange_code": "01970f22-2bf0-7000-8000-000000000099"
}Changes
- breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - info
the
request property format was generalized fromuuidto no format - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- breaking