Usage Billing Usage Summary
Changed onTotal the caller's settled usage over a window.
/history is a ledger with one row per movement, so a total spanning more than one page cannot come from it. This answers the one question the UI asks of the whole ledger at once: how many runs, and what they cost.
Only settled usage counts. void, expiry and chargeback draw the balance down as well, but they reverse a grant rather than report usage.
A user who has never topped up reports zero for every field.
group_by=automation adds groups: the same total, one entry per automation. Older usage without an automation id groups by its label.
Request
- Base URLhttps://api.todoist.com
- URLhttps://api.todoist.com/api/v1/usage_billing/usage_summary
- Authnone declared
Query parameters
Product whose usage to total.
Count one kind of work only, for example automation_run. More than one kind settles against the same balance, so a per-run average over all of them mixes runs with chat messages. Omit to total every category.
Start of the window, inclusive. Omit to start at the account's first event. A value with no offset is read as UTC, which is what created_at in /history reports.
End of the window, exclusive. Omit to run to now. A value with no offset is read as UTC.
Split the total by the automation that ran, in groups. Send category=automation_run with it: chat messages carry no automation, so without the filter each chat label becomes a group of its own.
Response
Successful Response
Example response
{
"currency": "usd",
"usage_count": 412,
"charged_units": 5643900,
"charged_amount": 11287800,
"groups": [
{
"automation_id": "0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b",
"charged_amount": 1148000,
"charged_units": 574000,
"description": "Automation: Daily digest",
"usage_count": 42
},
{
"charged_amount": 82200,
"charged_units": 41100,
"description": "Automation: Triage",
"usage_count": 3
}
]
}Changes
- info
added the new optional
queryrequest parametergroup_by - info
added the optional property
to the response with the status
- info
- info
endpoint added
- info