cURL
The following cURL request can be used to call the production token endpoint on the Access.Pay.Loader API.
You will need the following variable obtained from the platform team:
- {{API_KEY}}
Full Example
curl --location 'https://group.pay.accessacloud.com/loader/token' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: {{API_KEY}}' \
--data-raw '{
"claims": {
"sub": "user-12345",
"org_id": "org-67890",
"role": "admin"
}
}'
Minimal Example (Single Claim)
curl --location 'https://group.pay.accessacloud.com/loader/token' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: {{API_KEY}}' \
--data '{
"claims": {
"sub": "user-12345"
}
}'