authorization code for an access token after a user has authenticated and authorized your application.code and state from the /oauth/authorize redirect.{{baseUrl}}oauth/clients/oauth/authorize with required query parameters.code and state on your redirect_uri./oauth/access-token to obtain tokens.31536000 secondsNote: Tokens do not auto-renew. You must refresh or re-authorize after expiry.
curl --location -g --request POST '{{baseUrl}}oauth/access-token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=authorization_code' \
--data-urlencode 'code=AUTH_CODE' \
--data-urlencode 'client_id=YOUR_CLIENT_ID' \
--data-urlencode 'client_secret=YOUR_CLIENT_SECRET' \
--data-urlencode 'redirect_uri={{baseUrl}}auth/callback' \
--data-urlencode 'state=UNIQUE_STATE'{
"token_type": "Bearer",
"expires_in": 31536000,
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGci...",
"refresh_token": "def5020052753bd062e173..."
}