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 operationParameters
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).
curl -X GET "https://app.pipeline.help/api/v1/analytics/top-performers?metric=replies" \
-H "Authorization: Bearer $PIPELINE_API_KEY"Full 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"
]
}