Token request
Returns access token and refresh token.
Endpoint
Request Type | URL |
|---|---|
POST | https://{EnvironmentURL}/{Client_tenant}/connect/token |
Headers
Parameter | Type | Mandatory | Description |
|---|---|---|---|
x-api-version | string | Yes | Requested API version – 1.0 |
Content-Type | string | Yes | application/x-www-form-urlencoded |
Request body
Body - JSON
Parameter | Type | Mandatory | Description |
|---|---|---|---|
grant_type | string | Yes | authorization_code |
code | string | Yes | Authentication code received on Authorization step |
redirect_uri | string | Yes | URI to redirection in your application |
code_verifier | string | Yes | Code Verifier generated before Authorization step |
client_id | string | Yes | Your Client_ID |
client_secret | string | Yes | Your Client_Secret |
Responses
200 OK – Success
Body - JSON
{
"refreshTokenExpiresIn": 0,
"refreshToken": "string",
"tokenType": "string",
"expiresIn": 0,
"accessToken": "string"
}
400 Bad Request
No body
Last modified: 19 января 2024