Skip to content

Search API reference

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

Create a telemetry

Start measuring and billing something your customers use.

POST/v1/telemetries

Start measuring and billing something your customers use.

Endpoint

http
POST /v1/telemetries

Request body

NameTypeRequiredDescription
namestringRequiredShown on invoices.
event_namestringRequiredLowercase letters, digits and underscores. Fixed once created.
aggregationenumRequiredsum, count or last.
windowenumOptionalnone (the default), hour or day.
customer_keystringRequiredThe payload key with your customer's ID.
value_keystringRequiredThe payload key with the amount.
unit_singularstringRequiredSuch as token.
unit_pluralstringRequiredSuch as tokens.
currencystringRequiredusd. Fixed once created.
pricingobjectRequiredThe model and its amounts.
descriptionstringOptionalFor your team.

Example request

bash
curl -X POST https://api.sovgate.com/v1/telemetries \  -H "Authorization: Bearer sov_sk_test_your_key" \  -H "Idempotency-Key: 4877ab36-4b2a-4c1d-9e3f-a6e4011a6be5" \  -H "Content-Type: application/json" \  -d '{  "name": "Input tokens",  "event_name": "llm_input_tokens",  "aggregation": "sum",  "customer_key": "customer",  "value_key": "tokens",  "unit_singular": "token",  "unit_plural": "tokens",  "currency": "usd",  "pricing": {    "model": "per_unit",    "unit_amount": 20,    "per": 1000  }}'

Example response

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"}