Skip to content

Metrics & Billing

Read-only performance and account telemetry — workspace/campaign metric trends, credit balance, and billing/subscription status.

Full name: campaignstack_get_workspace_metrics

workspace:read Read-only Idempotent

Get workspace-level metrics: latest snapshot plus a time-series for the requested date range. Includes total campaigns, active campaigns, leads added/contacted/converted today, and the top campaign. Call this when the user asks how the workspace is doing overall, not one campaign in particular. It does not break results down by campaign; use campaignstack_get_campaign_metrics for that.

NameTypeRequiredDefaultDescription
workspaceIdstringNoWorkspace ID. REQUIRED for a user key (csu_), which spans every workspace you belong to; omitted for a workspace key (cs_), which is bound to one and ignores this argument. campaignstack_whoami reports which kind of key you are holding and, for a user key, the workspaces it can reach.
daysintegerNo30Number of calendar days to include in the range (default 30, max 90) (min: 1, max: 90)

Full name: campaignstack_get_campaign_metrics

campaigns:read Read-only Idempotent

Get per-campaign metrics: latest snapshot plus a time-series for the requested date range. Includes leads contacted, responded, converted, failed, total leads, and average ICP match score. Call this when the user asks how one named campaign is performing. Use campaignstack_list_campaigns to find valid campaign IDs. The campaign must belong to your API key’s workspace; metrics for campaigns in other workspaces are not returned. It does not summarize every campaign at once, use campaignstack_get_workspace_metrics for that.

NameTypeRequiredDefaultDescription
campaignIdstringYes(min length: 1)
daysintegerNo30Number of calendar days to include in the range (default 30, max 90) (min: 1, max: 90)

Full name: campaignstack_get_credit_balance

workspace:read Read-only Idempotent

Get the current AI credit balance for a workspace. Returns monthly usage, included credits, rolled-over credits, pack balance, overage used, total pool size, remaining credits, percent used, and plan type. Call this when the user asks how many credits are left or whether an action would run out. It never changes the balance; use campaignstack_get_workspace_billing for plan and subscription details.

NameTypeRequiredDefaultDescription
workspaceIdstringNoWorkspace ID. REQUIRED for a user key (csu_), which spans every workspace you belong to; omitted for a workspace key (cs_), which is bound to one and ignores this argument. campaignstack_whoami reports which kind of key you are holding and, for a user key, the workspaces it can reach.

Full name: campaignstack_get_workspace_billing

workspace:read Read-only Idempotent

Get billing information for a workspace: plan (free/paid), billing cycle, workspace status, and Stripe subscription details (period start/end). Call this when the user asks what plan they are on, when it renews, or whether the workspace is locked. It does not show credit usage; use campaignstack_get_credit_balance for that.

NameTypeRequiredDefaultDescription
workspaceIdstringNoWorkspace ID. REQUIRED for a user key (csu_), which spans every workspace you belong to; omitted for a workspace key (cs_), which is bound to one and ignores this argument. campaignstack_whoami reports which kind of key you are holding and, for a user key, the workspaces it can reach.