credit_ledger_entries

Credit ledger entries metrics

Credit spend aggregates - THE credits-usage surface: spent (Σ cost) + paid_calls_count over a REQUIRED period (half-open [from,to) on created_at - created_at filter ops ignored), group_by playtable_field_sid | tool_sid | created_date | playtable_sid. Use for: monthly enrichment cost, spend by field/tool/day/table, what run X cost (filter.run_sid). Local receipts - the gtm-api ledger is authoritative billing. Pre-run price → playtable-runs estimate; balance → gs.service.id; line items → search.

Contract:

  • MCP tool get_credit_ledger_entries_metrics, registry package mcp.playtables/credit_ledger_entries, mount id.billing.
  • Operation metrics, response envelope metrics.
  • Flags: read only.
post/api/credit-ledger-entries/metrics

Request

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

Request body

group_by'playtable_sid' | 'playtable_field_sid' | 'tool_sid' | 'created_date'

Single spend axis: playtable_sid | playtable_field_sid | tool_sid | created_date - adds groups[] with per-value counts + metrics. Cap 500 groups (§4.17).

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.