Get the org credit usage history
Returns a day-by-day breakdown of the organization's credit spend over a trailing window, plus the total spent across it — enough to draw a usage chart or spot a trend without post-processing.
Every day in the window is present, so a day with no spend comes back with a usage of 0 and there are no gaps to fill. Entries run oldest to newest and the last one is today, which is still accumulating — its usage will keep rising until the day closes.
Request
- Base URLhttps://apiv2.senso.ai/api/v1
- AuthAPI key in header X-API-Key
Query parameters
Length of the trailing window in days, 1–365 (default 30), counting back from today. A value outside that range, a non-numeric one, or ?days= with no value at all is rejected with 400 rather than falling back to the default.
Response
The daily usage series for the requested window.
Example response
{
"days": 7,
"period_usage": 43.15,
"history": [
{
"date": "2026-09-04",
"usage": 12.5
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.