Schedule a campaign

Schedule a draft campaign, or reschedule a scheduled one, to send automatically at a future time. Messages are sent and charged to the wallet when it goes out.

POST https://api.centerfy.ai/webhooks/inbound/campaigns/:id/schedule

Headers

HeaderRequiredValueDescription
x-api-keyYesyour sub-account API key (cfy_…)Authenticates the request; or use Authorization: Bearer <key>.

Path parameters

NameTypeRequiredDescription
idstring (uuid)YesThe campaign id.

Body parameters

NameTypeRequiredDefaultDescription
start_datestring (ISO 8601 datetime)Yes—When to send; must be in the future.

Request body

{
  "start_date": "2026-10-10T16:00:00.000Z"
}

Example

curl -X POST "https://api.centerfy.ai/webhooks/inbound/campaigns/{id}/schedule" \
  -H "x-api-key: $CENTERFY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "start_date": "2026-10-10T16:00:00.000Z"
}'
import { CenterfyClient } from "@centerfy/sdk";

const centerfy = new CenterfyClient({ apiKey: process.env.CENTERFY_API_KEY! });

const result = await centerfy.campaigns.schedule("<campaignId>", {
  "start_date": "2026-10-10T16:00:00.000Z"
});
console.log(result);
centerfy campaigns schedule <campaignId> '{"start_date":"2026-10-10T16:00:00.000Z"}'

MCP tool: centerfy_campaigns_schedule (see MCP server)

Response

{
  "status": "success",
  "campaign": {
    "id": "4b7e1c2d-3a4f-4e5d-9c8b-7a6f5e4d3c2b",
    "name": "October promo",
    "campaign_type": "email",
    "status": "scheduled",
    "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": "2026-10-10T16:00:00.000Z",
    "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 start_date is not a valid datetime or is not in the future (use Send a campaign now instead), the content is missing, or neither contact_ids nor smart_list_id is set.
  • 409 — unless the campaign is draft or scheduled, or if it changed state meanwhile.
  • 404 — if the campaign is not in this sub-account.
© 2026 Centerfy AI. All rights reserved.