sdkDeterministic
Get campaign analytics
pipeline.getCampaignAnalytics
Get detailed analytics for a campaign including connection rates, reply rates, and message performance.
Parameters
workspaceId
string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
campaignIdrequired
string
No description.
start
string
No description.
end
string
No description.
Example
TypeScripttypescript
await pipeline.getCampaignAnalytics({"campaignId": "00000000-0000-4000-8000-000000000000"})
Response
Success response schemajson schema
{"type": "object","properties": {"data": {"type": ["array","object"],"description": "Per-day analytics rows (detailed/chart) or the analytics summary object (format=summary)"},"metadata": {"type": "object","properties": {"campaign_id": {"type": "string"},"campaign_name": {"type": "string"},"campaign_status": {"type": "string"},"workspace_id": {"type": "string"},"period": {"type": "string"},"start_date": {"type": "string"},"end_date": {"type": "string"},"format": {"type": "string"}}},"aggregated": {"type": "object","description": "Present for detailed/chart formats"},"chart_data": {"type": "array","description": "Present only when format=chart"},"comparison": {"type": "object","description": "Present only when compare=true"},"ci_ratio": {"type": "number"},"ci_classification": {"type": "string"},"icp_tier": {"type": "string"},"benchmark_status": {"type": "string"},"funnel_metrics": {"type": "object","description": "Present only for non-summary formats"},"funnel_comparison": {"type": "object","description": "Present only when compare=true and format is not summary"}}}
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.