Skip to content

Search API reference

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

Create a usage alert

Watch a telemetry for a level of usage.

POST/v1/usage_alerts

Watch a telemetry for a level of usage.

Endpoint

http
POST /v1/usage_alerts

Request body

NameTypeRequiredDescription
titlestringRequiredFor your team.
telemetrystringRequiredThe telemetry, tlm_....
thresholdstringRequiredThe level, in its units.
customerstringOptionalOne customer. Default: each customer.
recurrenceenumRequiredonce or monthly.

Example request

bash
curl -X POST https://api.sovgate.com/v1/usage_alerts \  -H "Authorization: Bearer sov_sk_test_your_key" \  -H "Idempotency-Key: 637fcf0e-4b2a-4c1d-9e3f-172891c78095" \  -H "Content-Type: application/json" \  -d '{  "title": "Over 500M tokens in a month",  "telemetry": "tlm_b05e39ad8f80e03f25cf2d2a",  "threshold": "500000000",  "recurrence": "monthly"}'

Example response

json
{  "id": "alrt_833020e1d42270c789faabed",  "object": "usage_alert",  "livemode": false,  "title": "Over 500M tokens in a month",  "telemetry": "tlm_b05e39ad8f80e03f25cf2d2a",  "threshold": "500000000",  "customer": null,  "recurrence": "monthly",  "status": "active",  "created": "2026-11-27T09:00:00Z"}