List held usage
const url = 'http://localhost:8080/v1/usage-events/held';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/v1/usage-events/held \ --header 'Authorization: Bearer <token>'Usage rows the LiteLLM integration received for a customer or meter
that did not exist yet. They are kept with their idempotency keys,
not billed, until you release or discard them. Grouped by external
customer ID, event name and reason, most recent arrival first. Lists
the 200 external customer IDs with the most recent arrivals, with
every group for each; total_customers and total_rows count all
held rows, listed or not. Requires usage read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Held groups
object
The usage rows still held for one external customer ID, event name and reason.
object
The LiteLLM user value the rows carried.
The event_name the rows carried.
What was missing when the rows arrived.
Sum of the held quantities, as a decimal string.
When Hardcount last received a row for this group.
The customer whose external ID now matches, or empty when none does yet.
Whether a meter with this event_name exists now.
External customer IDs with rows held, including those not listed in data.
Rows held, including those not listed in data.
Example
{ "data": [ { "reason": "customer_not_found" } ]}