cio_campaign_metrics
Pack: customer-io · Endpoint: https://gateway.pipeworx.io/customer-io/mcp
Return time-bucketed Customer.io delivery, bounce, open, click, unsubscribe, and conversion metrics for one campaign. Answers how a lifecycle campaign performed and when engagement changed.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
campaign_id | number | yes | Customer.io campaign ID |
start | number | no | Start as Unix seconds |
end | number | no | End as Unix seconds |
resolution | string | no | Metric bucket; defaults to daily |
message_type | string | no | |
timezone | string | no | IANA timezone such as America/Los_Angeles |
Example call
Arguments
{
"_apiKey": "your-customer-io-app-api-key",
"_region": "us",
"campaign_id": 42,
"resolution": "daily"
}
curl
curl -X POST https://gateway.pipeworx.io/customer-io/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"cio_campaign_metrics","arguments":{"_apiKey":"your-customer-io-app-api-key","_region":"us","campaign_id":42,"resolution":"daily"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('cio_campaign_metrics', {
"_apiKey": "your-customer-io-app-api-key",
"_region": "us",
"campaign_id": 42,
"resolution": "daily"
});
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"customer-io": {
"url": "https://gateway.pipeworx.io/customer-io/mcp"
}
}
}
See Getting Started for client-specific install steps.