v1

latestSwagger 2.02026-08-0484141342.3 KB
Authentication

# Getting access token for endpoints

OAuth2 protocol is used to authorize Refresh/Access tokens. To obtain the API, you should generate a refresh token and then request an access token using the /v1/auth/token endpoint. The refresh token will be valid for 6 months, whereas the access token will be available for 2 hours. After getting the access token, add Authorization: Bearer {accessToken} to the header to request access to the below endpoints.

post/v1/auth/token

Request body

refresh_tokenstring

Example request

{
  "refresh_token": "access_token (Getting from Settings / API Token / Generate Token)"
}

Response

AuthTokenResponse

expire_atinteger

When access token is expired at

tokenstring

Access Token

Example response

{
  "expire_at": 1650875751,
  "token": "access_token"
}