Accounts
Retrieve lifetime usage for multiple accounts.
Returns corrected lifetime usage totals in one ClickHouse query for up to 100 accounts. No PostgreSQL query is performed.
get/v2/accounts/usage/lifetime
Request
- Base URLhttps://docs.ledgerup.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
account_idsstring required
Comma-separated LedgerUp account identifiers. Between 1 and 100 unique ids.
Response
Lifetime usage grouped by account and metric or currency.
Example response
{
"data": [
{
"account_id": "account_0194f4e3a2b77c6aa91c4f6b4db2a980",
"metric_id": "metric_0194f4e3a2b77c6aa91c4f6b4db2a980",
"currency": "usd",
"quantity": "1250.5"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.