post

/oauth/token

The first step is to get authorization from the user. Use this endpoint to get access token. You will need the client ID as well as the username and password of your account. All API calls must supply this access token with Authorization: Bearer as header.

Authorization

oauth2 - password

Request Body

Form data (application/x-www-form-urlencoded)
grant_type
string

Must aplwayse be “password”

required
default: password
username
string

User’s account

required
password
string

User’s login

required

Responses

The authorization server issues an access token, and constructs the response by adding the following parameters to the entity-body of the HTTP response with a 200 (OK) status code. The granted access_token is valid for expires_in seconds only.

  • access_token The access token issued by the authorization server.
  • token_type The type of the token issued
  • expires_in The lifetime in seconds of the access token. For example, the value “3600” denotes that the access token will expire in one hour from the time the response was generated.
  • scope The scope of the access token
1 Example
Schema
object
access_token
string
required
token_type
string
required
expires_in
number
required
scope
string
required

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
1 variable not set
oauth_access_token