Analytics / REST API

Top performers

Rank workspace campaigns by a metric (replies, completions, or connections). Returns the top N campaigns ordered by the chosen metric.

GET /api/v1/analytics/top-performersDeterministic operation

Parameters

workspaceIdOptional · string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
metricRequired · string
See the input schema for this field.replies · completions · connections
limitOptional · number
Top N to return (1-50, default 5).
Request example
curl -X GET "https://app.pipeline.help/api/v1/analytics/top-performers?metric=replies" \
  -H "Authorization: Bearer $PIPELINE_API_KEY"
Full input schema
Input schema
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "description": "Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client."
    },
    "metric": {
      "type": "string",
      "enum": [
        "replies",
        "completions",
        "connections"
      ]
    },
    "limit": {
      "type": "number",
      "description": "Top N to return (1-50, default 5)."
    }
  },
  "required": [
    "metric"
  ]
}
See this operation inCLI MCP TypeScript SDK
API reference | Pipeline v2 preview