Check Credit Usage
This API returns current credits usage information.
curl --location 'https://api.maximise.ai/v1/whitelabel-api/check-credits' \
--header 'Authorization: Bearer <token>'const axios = require('axios');
axios.get('https://api.maximise.ai/v1/whitelabel-api/check-credits', {
headers: {accept: 'application/json', Authorization: 'Bearer <token>'}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.log(error);
});import requests
url = "https://api.maximise.ai/v1/whitelabel-api/check-credits"
payload = {}
headers = {
'Authorization': 'Bearer <token>'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
Example response
Status Code: 200 OK
{
"whitelabel_id": "RMieIJj0M7RIDmr7",
"total_credits": 300,
"credits_consumed": 0,
"credits_remaining": 300
}Last updated