Request Service Account Token
API Description
Request an access token using the client_credentials grant type.
Request
Path Template
POST {url}/api/v1/oauth2/token
Request Headers
| Name | Input |
|---|---|
Content-Type |
Example Request Headers
Content-Type: application/json
Request Body
| Name | Input |
|---|---|
client_id | |
client_secret | |
grant_type | |
scope |
grant_typeMUST beclient_credentialsscopeMUST bebusiness
Example Request Body (raw JSON)
{
"client_id": "89352235982374239823",
"client_secret": "e5868ebb4445fc2ad9f949956c1cb9ddefa0d421",
"grant_type": "client_credentials",
"scope": "business"
}
Response
200 OK or Error
Response Headers
| Name |
|---|
content-type |
Example Response Headers
HTTP/1.1 200 OK
content-type: application/json
Response Body
| Name | Output |
|---|---|
access_token | |
expires_in | |
token_type |
Example Response Body (raw JSON)
{
"expires_in": 3600,
"token_type": "Bearer",
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxOTc2IiwibmFtZSI6IkpvaG5ueSBBcHBsZXNlZWQiLCJpYXQiOjQ0MzYyMDgwMH0.V3n-3AcvyfHSuTCE9DNX3gHY3ApdGhUlF1fp-7fiMhI"
}