Exchange a token

Exchange an OAuth authorization code or refresh token for an access token.

Refreshing Tokens

Refresh tokens are single-use. Each successful refresh returns a new refresh_token and invalidates the previous one. Store the new access_token and refresh_token from the response before the next refresh.

If the exchange cannot be completed, this endpoint returns a 400 response with an OAuth error and description.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Body

string
required

The client ID of the application.
You can find it in the application details here: https://app.trakt.tv/settings/apps

string
required

The client secret of the application.
You can find it in the application details here: https://app.trakt.tv/settings/apps

string
required

URI specified in your app settings.

string
required

The code received when trakt redirects the user back to the application.

string
required

Defines how an access token is obtained.

Responses

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