Generate Access Token

Exchange the temporary code from the merchant's install for an access token. See Authenticating with OAuth 2.0.

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

Have you registered your app yet?

You need an app ID and secret before you can call this endpoint. See Registering your integration.

Send the access_token from the response in the X-Yotpo-Token header of every other request. The token is per store: a merchant with several Yotpo stores installs your app on each one, and you get a separate token for each.

Send client_id and client_secret in the request body as JSON or form fields. An Authorization: Basic header isn't read. The error bodies for this endpoint aren't valid JSON: see Errors.

Body Params
string
required
Defaults to authorization_code

The grant_type for this request is authorization_code

string
required

The Application ID shared with you upon app registration

string
required

The Application Secret shared with you upon app registration

string
required

The redirect/callback URI provided upon app creation. Your token will be sent there

string
required

The OAuth 2.0 code granted via the installation link

Responses

Language
LoadingLoading…
Response
Choose an example:
application/json