Authorization

Get or Refresh Access Token

SecurityJWT
Request
Request Body schema: application/x-www-form-urlencoded
username
string

Represents User name. Required for "password" GrantType

password
string

Represents Password. Required for "password" GrantType

client_id
required
string

Represents ClientId.

client_secret
required
string

Represents ClientSecret.

grant_type
required
string

Represents GrantType. Should have a value - "password" for getting token and "refresh_token" for refreshing it

scope
string

Represents Scope. Should have a value - "offline_access" for getting token

refresh_token
string

Represents RefreshToken. Required for "refresh_token" GrantType

Responses
200

Success

401

Unauthorized

default

Error

post/oauth2/token
Request samples
application/x-www-form-urlencoded
username=string&password=string&client_id=string&client_secret=string&grant_type=password&scope=string&refresh_token=string
Response samples
application/json
{
  • "access_token": "string",
  • "refresh_token": "string",
  • "expires_in": 0
}