Read counted usage
What the usage meter has counted for one customer and metric, by hour, before it is billed. from and to are moved to the start of their hour. Kept for 5 minutes. Secret and trusted tokens may call it; a limited token may not (403).
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
customer_id*stringYour id for the customer.
metric_key*stringThe metric's event_key.
from*stringA date, from the start of its hour.
to*stringA date, not included. At most 366 days after from.
Success.
application/json- response
object?stringAlways usage_summary.
customer_id?stringYour id for the customer.
metric_key?stringThe metric's event key.
from?stringStart, from the start of its hour.
date-timeto?stringEnd, not included.
date-timeaggregation?stringThe metric's aggregation.
"sum""gauge"value?numberThe total for sum, the highest hour for gauge.
events?integerEvents counted.
complete?booleantrue once to is at least 15 minutes ago.
hours?array<>Per hour: hour, value, events.
curl -X GET 'https://api.comecero.com/api/v1/usage/summary?customer_id=string&metric_key=string&from=string&to=string'{ "object": "usage_summary", "customer_id": "cust_8412", "metric_key": "ai_tokens", "from": "2026-11-01T00:00:00Z", "to": "2026-11-02T00:00:00Z", "aggregation": "sum", "value": 1250000, "events": 412, "complete": true, "hours": [ { "hour": "2026-11-01T09", "value": 52000, "events": 18 } ]}Overview
Previous Page
List a customer's events GET
A customer's events for one UTC day, newest hour first. Kept for 24 months. Events show here up to about 5 minutes after they are counted. `date` is today or earlier, at most 24 months ago. Secret and trusted tokens may call it; a limited token may not (`403`).