pipeline_stages

Pipeline stages metrics

The funnel for one pipeline: per stage, how many objects sit in it now, plus summed deal_size for object:"company". metrics is keyed by stage sid with a "null" entry for the objects in no stage; an empty stage is absent, not zero, and names come from search_pipeline_stages. No period: point-in-time, not a windowed rate. filter is a PEOPLE or COMPANY filter (the shape search_people / search_companies take), never a stage filter. Reads Elasticsearch: a listing number, never a billing one.

Contract:

  • MCP tool get_pipeline_stages_metrics, registry package mcp.playtables/pipeline_stages, mount playtables.pipeline.
  • Operation metrics, response envelope metrics.
  • Flags: read only.
post/api/pipeline-stages/metrics

Request

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

Request body

object'person' | 'company' required

Which funnel to count: person (over the people index) or company (over the companies index, which is also what enables deal_sum).

filterobject

Optional scope: a people filter when object is person, a company filter when it is company (operator objects as on the search tools, e.g. {playtable_sid: {eq: pt_tb_...}}). Omitted = the whole team. deleted_at is ignored: the funnel counts live rows only.

Response

metrics success envelope.

successtrue required
operation'metrics' required
metricsobject required

Keyed by stage sid (cr_ps_…), plus a "null" key carrying the objects with no stage. A stage with no objects is absent from the map, not a zero row.

applied_filtersobject

Changes

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