comecerodocs

List a customer's events

GET
/usage/events

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).

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Query Parameters

customer_id*string

Your id for the customer.

date*string

One UTC day, YYYY-MM-DD.

metric_key?string

Only this metric's events.

limit?integer

1 to 100, default 100.

cursor?string

next_cursor from the page before.

Response Body

Success.

application/json
  1. response
object?string

Always usage_event_list.

customer_id?string

Your id for the customer.

date?string

The UTC day.

metric_key?|

The metric asked for, or empty.

data?array<>

Events: event_id, metric_key, quantity, operation_id, occurred_at, received_at, properties.

next_cursor?|

Pass as cursor for the next page. Empty at the end of the day.

Example Request
curl -X GET 'https://api.comecero.com/api/v1/usage/events?customer_id=string&date=string'
Example Response
{  "object": "usage_event_list",  "customer_id": "cust_8412",  "date": "2026-11-12",  "metric_key": null,  "data": [    {      "event_id": "9f1c0a",      "metric_key": "ai_tokens",      "quantity": "1200",      "operation_id": "chat-1001",      "occurred_at": "2026-11-12T09:11:11.000Z",      "received_at": "2026-11-12T09:11:11.441Z",      "properties": {        "model": "large"      }    }  ],  "next_cursor": null}