Exchange a token

Exchanges the Oauth2 authorization code for an access token that can be used to access user resources like account information and profile.

Request
Request Body schema: application/json
code
required
string

Oauth2 Authorization Code

grant_type
required
string

Must be set to authorization_code

redirect_uri
required
string

Client's redirection endpoint. Must be an absolute URI

Responses
200

OK

post/zephr/oauth2/token/
Request samples
application/json
{}
Response samples
application/json
{
  • "scope": "user.account:read user.profile:read user.profile:update",
  • "access_token": "oa_nj1dfhecrs1jwxi0wd0xk49n",
  • "token_type": "bearer",
  • "expires_in": 3600,
  • "refresh_token": "6kuabo4gug8t9h13x7gt43cm",
  • "user_id": "1234567890"
}