curl --request GET \
--url https://julian.11x.ai/api/v1/credits/usage \
--header 'x-api-key: <api-key>'import requests
url = "https://julian.11x.ai/api/v1/credits/usage"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://julian.11x.ai/api/v1/credits/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"period": {
"type": "month",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"month": "2026-05"
},
"organization": {
"allocatedCredits": 123,
"spentCredits": 123,
"remainingCredits": 123,
"percentageUsed": 123
},
"agents": [
{
"agentId": "<string>",
"agentName": "<string>",
"spentCredits": 123,
"transactionCount": 123
}
]
}Get credit usage
Returns your organization’s credit utilization for a billing month (default: current month) or a custom date range, plus a per-agent consumption breakdown. Amounts are in whole credits.
In month mode the response includes allocation, remaining, and percentageUsed; the organization spent figure is authoritative and may differ slightly from the sum of agents[]. In range mode allocation, remaining, and percentageUsed are null, and organization spent equals the sum of per-agent spend.
curl --request GET \
--url https://julian.11x.ai/api/v1/credits/usage \
--header 'x-api-key: <api-key>'import requests
url = "https://julian.11x.ai/api/v1/credits/usage"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://julian.11x.ai/api/v1/credits/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"period": {
"type": "month",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"month": "2026-05"
},
"organization": {
"allocatedCredits": 123,
"spentCredits": 123,
"remainingCredits": 123,
"percentageUsed": 123
},
"agents": [
{
"agentId": "<string>",
"agentName": "<string>",
"spentCredits": 123,
"transactionCount": 123
}
]
}Authorizations
Organization API key. Get it from the 11x team or from the platform.
Query Parameters
Billing month as YYYY-MM. Defaults to the current month. Must not be in the future. Mutually exclusive with startDate/endDate.
^\d{4}-\d{2}$"2026-05"
Start of a custom range as YYYY-MM-DD (inclusive, UTC). Requires endDate. Range cannot exceed 366 days.
End of a custom range as YYYY-MM-DD (inclusive, UTC). Requires startDate. Cannot be in the future.