Get Spending Summary
curl --request GET \
--url https://api.agentline.cloud/v1/billing/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agentline.cloud/v1/billing/summary"
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/summary', 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 Spending Summary
Month-over-month spending summary.
Returns total debits grouped by month for trend analysis.
GET
/
v1
/
billing
/
summary
Get Spending Summary
curl --request GET \
--url https://api.agentline.cloud/v1/billing/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agentline.cloud/v1/billing/summary"
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/summary', 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
Number of months to show
Required range:
1 <= x <= 24Response
Successful Response