cURL
curl --request POST \ --url https://{defaultHost}/v5/oauth/token \ --header 'Content-Type: application/json' \ --data ' { "grant_type": "authorization_code", "code": "<string>", "client_id": "<string>", "client_secret": "<string>", "redirect_uri": "<string>" } '
{ "access_token": "<string>" }
Exchange a code for a token
The grant type
authorization_code
The authorization code
The client ID of your oAuth application.
The client secret of your oAuth application.
The redirect URI
oauth token created
The access token of the user
Was this page helpful?