Obtain a Refresh and Access Tokens
POST/v1/oauth/token
This endpoint supports two key operations:
- Obtain an initial Refresh Token by passing
grant_type: "client_credentials"together with yourclient_idandclient_secret. The response will contain the initial Refresh Token and an Access Token. - Renew Access Token by passing
grant_type: refresh_tokenusing a valid Refresh Token next to yourclient_id. The Refresh token, used in the request, will be invalidated.
Request
Responses
- 200
- 413
- 422
- 429
- 500
Success Response
Error
Error
Too Many Requests
Response Headers
x-ratelimit-limit
The rate limit ceiling for the current time window. Envoy may include multiple limits and window metadata.
Example:
50, 50;w=1x-ratelimit-remaining
The number of requests remaining in the current rate limit window.
Example:
0x-ratelimit-reset
The number of seconds until the current rate limit window resets.
Example:
1x-envoy-ratelimited
Indicates the request was rate limited by the Envoy proxy.
Example:
trueError