List usage events
Returns a paginated list of usage events, newest first. Filter by contract, metric, date range, or rating status.
API key as Bearer token: Authorization: Bearer luc_live_...
In: header
Query Parameters
Filter by contract external ID.
Filter by metric name.
Start of service period (YYYY-MM-DD).
dateEnd of service period (YYYY-MM-DD).
dateFilter by event status.
"accepted" | "rated"Number of items to return (1–100, default: 50).
501 <= value <= 100Event ID to paginate after (cursor-based).
Response Body
application/json
application/json
curl -X GET "https://api.lucius.finance/v1/billing/usage?contract=acme-corp-2026&metric=revenue_amount_invoiced"{
"object": "list",
"data": [
{
"object": "usage_event",
"id": "evt-2026-03-001",
"contract": "acme-corp-2026",
"metric": "revenue_amount_invoiced",
"quantity": 10000,
"service_period_start": "2026-03-25",
"service_period_end": "2026-03-25",
"ingested_at": "2026-03-05T11:21:59.868Z",
"status": "rated"
}
],
"has_more": false,
"total_count": 1
}{
"error": "Missing API key"
}Submit usage events
Submit up to 100 usage events in a single request. Each event is validated against the contract's pricing program, persisted, rated immediately, and the corresponding invoice is updated. Events are idempotent — submitting the same `event_id` twice returns success without creating a duplicate.
Get a usage event
Retrieve a single usage event by its idempotency key (`event_id`).