Skip to main content
Version: 0.9.17-patch2

Usage reporting

TelAPI exposes a small usage-reporting surface for integrations that need team-level consumption data outside TelWeb.

TTS characters

GET /api/v1/usage/tts-characters

Returns aggregated TTS character consumption for the team that owns the calling API key. The endpoint is scoped to that team and does not accept a team identifier in the query string.

Required scope: READ_TEAM_USAGE.

Query parameters:

ParameterDescription
timeframeInformational label echoed in the response. Supported values are day, week, month, and total.
fromOptional ISO 8601 lower bound. Use with to for a custom window.
toOptional ISO 8601 upper bound. Use with from for a custom window.

Response fields:

FieldDescription
teamIdTeam whose usage was queried.
timeframeEffective timeframe label.
from / toEffective ISO 8601 time window.
charactersTotalTotal TTS characters processed in the window (cached + generated).
charactersFromCacheTTS characters served from the media cache.
charactersGeneratedTTS characters generated by an upstream provider.
cacheHitRatioCached share of total characters, rounded to 4 decimal places.

The endpoint excludes apps marked as excluded from the dashboard so the numbers stay aligned with the TelWeb TTS widget. Use API keys to grant READ_TEAM_USAGE only to reporting integrations that need this endpoint.

See also

  • Scopes — API-key permission model.
  • Dashboard — TelWeb TTS character widget.
  • API reference — generated schemas when the OpenAPI snapshot is available.