post
https://{targetURL}/api/v1/auth/oauth2/token
OAuth2 Token endpoint that exchanges an authorization code for an access token.
This endpoint is called by the client application to exchange the authorization code received from the authorize endpoint for an access token.
Required parameters:
- grant_type: Must be 'authorization_code'
- code: The authorization code received from the authorize endpoint
- client_id: The OAuth2 client identifier
- client_secret: The OAuth2 client secret
- redirect_uri: Must match the redirect_uri used in the authorization request
Example:
POST /api/v1/auth/oauth2/token
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code&code=abc123&client_id=123&client_secret=secret456&redirect_uri=https://example.com/callback
Returns an access token that can be used to authenticate API requests.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200Token exchange successful
400Invalid request parameters
401Invalid client credentials or authorization code