Description
Get an OAuth 2.0 token to authenticate access for other APIs.
Parameters
| Parameter | Type | Description | Required |
| grant_type | String | OAuth grant Type. Always set to “client_credentials” | true |
| client_id | String | Client ID value | true |
| client_secret | String | Client secret value | true |
Tip: Client ID and Client Secret can be obtained by contacting SimpleLoyalty
Example
Sample Request
curl \
-X POST \
-H "Content-Type: application/json" \
-d '{
"grant_type": "client_credentials",
"client_id": "12345",
"client_secret": "67890"
}' \
https://simpleloyalty.com/oauth/token
Sample Response
{
"access_token": "token12345",
"token_type": "Bearer",
"expires_in": 7200,
"created_at": 1775635644
}