List campaigns
List SMS and email campaigns, newest first.
GET
https://api.centerfy.ai/webhooks/inbound/campaigns Headers
| Header | Required | Value | Description |
|---|---|---|---|
x-api-key | Yes | your sub-account API key (cfy_…) | Authenticates the request; or use Authorization: Bearer <key>. |
Query parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
limit | integer | No | 50 | Page size; minimum 1, maximum 100 (larger values are rejected with 400). |
offset | integer | No | 0 | Number of records to skip for paging; minimum 0. |
status | string | No | — | One of draft, scheduled, running, completed, failed, paused. |
campaign_type | string | No | — | One of sms, email. |
Example
curl -X GET "https://api.centerfy.ai/webhooks/inbound/campaigns?limit=50&offset=0" \
-H "x-api-key: $CENTERFY_API_KEY" import { CenterfyClient } from "@centerfy/sdk";
const centerfy = new CenterfyClient({ apiKey: process.env.CENTERFY_API_KEY! });
const result = await centerfy.campaigns.list({
"limit": 50,
"offset": 0
});
console.log(result); centerfy campaigns list '{"limit":50,"offset":0}' MCP tool: centerfy_campaigns_list (see MCP server)
Response
{
"status": "success",
"total": 1,
"limit": 50,
"offset": 0,
"has_more": false,
"campaigns": [
{
"id": "4b7e1c2d-3a4f-4e5d-9c8b-7a6f5e4d3c2b",
"name": "October promo",
"campaign_type": "email",
"status": "draft",
"subject": "20% off this week",
"message_content": "<p>Hi there, our October sale is on.</p>",
"contact_ids": [
"3f1c2a9e-7b4d-4c8a-9e2f-1a2b3c4d5e6f",
"6a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
],
"smart_list_id": null,
"start_date": null,
"business_hours_enabled": false,
"business_hours_config": null,
"progress": 0,
"contacted": 0,
"success": 0,
"pending": 0,
"opened_count": 0,
"clicked_count": 0,
"unsubscribed_count": 0,
"created_at": "2026-10-06T10:00:00.000Z",
"updated_at": "2026-10-06T10:00:00.000Z"
}
]
}Errors
400— if status or campaign_type is not an allowed value.
Notes
Only sms and email campaigns are returned. subject is null for SMS campaigns.