Step 3: Exchange authorization code with access token

Exchange the authorization code returned to your redirect URI for an access token and a refresh token.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required
Defaults to authorization_code

Always set the value for this parameter to authorization_code.

string
required

The Client ID of the app that is requesting user authorization.

string
required

App client secret. The client secret must be kept confidential.

string
required

Paste the authorization code that was provided as the code parameter value in the redirect URI.

string
required

Paste the redirect URI. The URI must match the original redirect URI that was used when requesting the authorization (including the trailing slash).

Responses

400

Failed to exchange the authorization code

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json