Skip to content

Search API reference

Find an endpoint or a guide of the Sovgate API reference and jump straight to it.

The telemetry event object

One reading of usage: a customer, a value and when it happened.

A telemetry event is one reading your systems send, counted or refused with the reason. The same identifier is never counted twice in a day, so a retried event can't bill twice.

Attributes

NameTypeDescription
idstringUnique identifier, starting uev_.
objectstringAlways telemetry_event.
livemodebooleantrue in live mode.
identifierstringYour own ID for the reading: its idempotency key.
event_namestringThe telemetry's event name it was sent under.
payloadobjectWhat you sent, as strings: the customer and value keys, and anything else.
telemetrystring or nullThe telemetry that counted it, tlm_....
customerstring or nullThe customer it was counted for.
timestamptimestampWhen the usage happened.
sourceenumapi or dashboard.
statusenumaccepted, rejected, canceled or replaced.
errorobject or nullWhy it was refused: code is duplicate, unknown_event, telemetry_inactive, customer_missing, customer_not_found, customer_inactive, value_missing, value_invalid, timestamp_in_future, timestamp_too_old, credits_exhausted or month_closed.
createdtimestampWhen Sovgate received it.

Usage can be reported up to 35 days after it happened, and up to 5 minutes ahead. A refused event isn't counted and nobody is billed for it.

Example

json
{  "id": "uev_ea13ec2163a908c495853f4b",  "object": "telemetry_event",  "livemode": false,  "identifier": "req_7f3a-0042",  "event_name": "llm_input_tokens",  "payload": {    "customer": "cust_13ed3f69adfcfcb6289a5491",    "tokens": "1200"  },  "telemetry": "tlm_b05e39ad8f80e03f25cf2d2a",  "customer": "cust_13ed3f69adfcfcb6289a5491",  "timestamp": "2026-11-27T08:59:58Z",  "source": "api",  "status": "accepted",  "error": null,  "created": "2026-11-27T09:00:01Z"}

Endpoints

EndpointWhat it does
POST /v1/telemetry_eventsSend one reading of usage.
POST /v1/telemetry_events/{id}/cancelTake a reading back before its month is billed.
GET /v1/telemetry_eventsList the readings your systems sent, counted or refused.