v1

latestOpenAPI 3.1.02026-07-241630614.2 KB

Get/refresh access token

The method allows you to exchange an authorization code to access token and refresh token

post/oauth2/access_token

Request body

client_idstring

client_id

client_secretstring

Secret key

grant_type'authorization_code' | 'refresh_token'

Type of authorization data (for Authorization code: authorization_code, for refresh token: refresh_token)

codestring

Your authorization code

refresh_tokenstring

Refresh token

redirect_uristring

Redirect URI indicated in the integration settings

Response

200

token_typestring
expires_ininteger
access_tokenstring
refresh_tokenstring
server_timeinteger

Example response

{
  "token_type": "Bearer",
  "expires_in": 86400,
  "access_token": "xxxxxx",
  "refresh_token": "xxxxx"
}