provider_calls

Provider calls metrics

Period-bound spend, latency and reliability over the calls: credits_charged_sum (what did we spend on AI and enrichment this month), total_tokens_sum, avg_duration_ms, error_rate and cache_hit_rate. period {from, to} is required and capped at 90 days; filter is the search filter; group_by splits by operation, provider, model (the LLM spend axis), status, error_code, source_service, cache_hit or created_date (spend by day). Run budgets and receipts are playtables' credit ledger, not this meter.

Contract:

  • MCP tool get_provider_calls_metrics, registry package mcp.integrations/provider_calls, mount integrations.providers.
  • Operation metrics, response envelope metrics.
  • Flags: read only.
post/api/provider-calls/metrics

Request

  • Base URL
    https://beta.getsales.io/integrations/v1
  • Auth
    HTTP bearer and API key in header Team-SID

Request body

group_by'operation' | 'provider' | 'model' | 'status' | 'error_code' | 'source_service' | 'cache_hit' | 'created_date' nullable

One split axis; omit for one total.

Response

metrics success envelope.

successtrue required
operation'metrics' required
applied_filtersobject

Changes

No recorded changes to this operation across all 1 revision of this API.