API ReferenceSpending
Get daily spending breakdown
Authorization
BearerAuth AuthorizationBearer <token>
API key with l4_live_ or l4_test_ prefix
In: header
Query Parameters
start?|
Start date in ISO 8601 format (e.g., 2026-02-01T00:00:00.000Z)
end?|
End date in ISO 8601 format (e.g., 2026-02-28T00:00:00.000Z)
Header Parameters
authorization*string
Response Body
application/json
application/json
curl -X GET "https://api.levelfour.ai/api/v1/spending/daily/breakdown" \ -H "authorization: string"{
"success": true,
"timestamp": "2019-08-24T14:15:22Z",
"data": {
"start_date": "string",
"end_date": "string",
"data_points": [
{
"date": "string",
"amount": 0
}
],
"total": 0
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}