ghl_email_get_campaign_stats
Retrieve statistics for email campaigns, workflow campaigns, or bulk actions by location and source ID to analyze performance and track results.
Instructions
Get Campaign Statistics Get statistics for email campaigns, workflows, or bulk actions Endpoint: GET /emails/locations/{locationId}/campaigns/stats/{source}/{sourceId} (Version header: v3; source: v3/emails-v3.json) Requires a Sub-Account (location) token. OAuth scopes: emails/stats.readonly
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"locationId": "<locationId>",
"source": "<source>",
"sourceId": "<sourceId>"
},
"name": "ghl_email_get_campaign_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source type: email-campaigns, workflow-campaigns, or bulk-actions | |
| sourceId | Yes | Source ID of the email campaign, workflow campaign, or bulk action | |
| locationId | Yes | Location ID | |
| subSourceId | No | Workflow action ID. Only valid when source is `workflow-campaigns` |