Skip to content

Search API reference

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

The telemetry object

One thing you measure and bill: how usage adds up each month, and its price.

A telemetry measures one thing your customers use, such as tokens or API calls. Your systems send telemetry events under its event_name; it adds them up per customer each month, and each customer is invoiced an hour after the month closes (UTC). Its event name, how usage is read and its currency are fixed once created.

Attributes

NameTypeDescription
idstringUnique identifier, starting tlm_.
objectstringAlways telemetry.
livemodebooleantrue in live mode.
namestringShown on your customers' invoices.
descriptionstring or nullFor your team.
event_namestringWhat your systems send usage under: lowercase letters, digits and underscores.
aggregationenumsum of values, count of events, or the last value in the month.
windowenumWhich events count: none (every event), hour (the latest per hour) or day (the latest per day).
customer_keystringThe payload key holding your customer's ID.
value_keystringThe payload key holding the amount.
unit_singularstringWhat one unit is called.
unit_pluralstringWhat several are called.
currencystringusd.
pricingobjectWhat a month of a customer's usage costs. per_unit: unit_amount cents per per units. package: unit_amount per package_size units, with rounding up or down for a part package. graduated or volume: per and tiers, each up_to and unit_amount.
statusenumactive or inactive. An inactive telemetry refuses the usage sent to it.
createdtimestampWhen it was created.

Example

json
{  "id": "tlm_b05e39ad8f80e03f25cf2d2a",  "object": "telemetry",  "livemode": false,  "name": "Input tokens",  "description": null,  "event_name": "llm_input_tokens",  "aggregation": "sum",  "window": "none",  "customer_key": "customer",  "value_key": "tokens",  "unit_singular": "token",  "unit_plural": "tokens",  "currency": "usd",  "pricing": {    "model": "per_unit",    "unit_amount": 20,    "per": 1000  },  "status": "active",  "created": "2026-11-27T09:00:00Z"}

Endpoints

EndpointWhat it does
POST /v1/telemetriesStart measuring and billing something your customers use.
GET /v1/telemetries/{id}Get a telemetry by its ID.
POST /v1/telemetries/{id}Change its name, description or price.
POST /v1/telemetries/{id}/deactivateRefuse new usage. Usage already counted is still billed.
POST /v1/telemetries/{id}/reactivateCount usage again.
GET /v1/telemetriesList your telemetries.