Get Expenditure
curl --request GET \
--url https://api.agentline.cloud/v1/billing/expenditure \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agentline.cloud/v1/billing/expenditure"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.agentline.cloud/v1/billing/expenditure', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Billing
Get Expenditure
Get a detailed expenditure breakdown for AI telephony usage.
Shows total spend split by category (voice calls, phone number provisioning, top-ups, refunds) with counts and averages. Useful for tracking how much your AI agents are spending on phone calls and phone numbers.
GET
/
v1
/
billing
/
expenditure
Get Expenditure
curl --request GET \
--url https://api.agentline.cloud/v1/billing/expenditure \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agentline.cloud/v1/billing/expenditure"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.agentline.cloud/v1/billing/expenditure', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
AgentLine API key. Get one via the email OTP flow (POST /v1/auth/otp then POST /v1/auth/verify). Pass as: Authorization: Bearer sk_live_...
Query Parameters
Time period: 'current_month', 'last_month', 'all_time', or 'YYYY-MM'
Response
Successful Response