API Reference
Calls

Workspace stats (calls today / failed / minutes / spend)

GET
/v1/calls/stats

Aggregates over the window selected by since. Supported values: today (default), 7d, month. Currency follows the workspace wallet currency.

Eventual consistency. spend_minor and (to a lesser extent) minutes_total are finalized asynchronously, after the call's call.completed event has been processed. The lag between hang-up and stats reflecting final cost is typically under 5 seconds, and can be longer at times of high load.

Customers building real-time dashboards SHOULD poll this endpoint no more frequently than every 30 seconds. For per-call cost in near-real-time, subscribe to the call.completed webhook event instead — its payload carries the final cost_minor after rating.

Authorization

bearerAuth
AuthorizationBearer <token>

Long-lived ES256 JWT minted from the dashboard (https://app.sautikit.com/developers/api-keys). Signed by the platform keyring. Carries workspace_id and scopes claims; revoked via the platform deny-list.

In: header

Query Parameters

since?string

Value in

  • "today"
  • "7d"
  • "month"

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/calls/stats"
{  "total": 0,  "failed": 0,  "minutes_total": 0,  "spend_minor": 0,  "currency": "string"}
{  "error": {    "code": "validation.bad_request",    "message": "string",    "request_id": "string"  }}