Skip to main content
Version: v3New

Schedule Campaign

POST 

/emails/locations/:locationId/campaigns/emails/:campaignId/schedule

Schedule or start an email campaign. The campaign must be in draft, cancelled, or paused status.

Request

Version stringrequired

API Version

Available optionsv3
locationId stringrequired

Location ID

campaignId stringrequired

Campaign ID

application/json

Bodyrequired

    scheduleTypestringrequired

    How to schedule the campaign

    Available optionsimmediatescheduledbatchrsssmart_send
    timeZonestringrequired

    IANA timezone

    userIdstringrequired

    ID of the user performing this action

    userNamestring

    Name of the user performing this action

    emailMetaobjectrequired

    Email subject, sender, and content metadata

    recipientsobjectrequired

    Who receives the email. Must provide either contactIds or filter.

    sendDaysstring[]

    Days of the week to allow sending. Used for batch and RSS scheduleTypes.

    Available optionsMonTueWedThuFriSatSun
    scheduleConfigobject

    Schedule configuration for immediate, scheduled, batch, and smart_send types. Required when scheduleType is not rss.

    rssConfigobject

    RSS feed configuration. Required when scheduleType is rss.

    abTestConfigobject

    A/B test configuration. Can be combined with any scheduleType except rss.

application/json

Success

Schema
    campaignIdstringrequired

    Campaign ID

    sourceIdstringnullablerequired

    Source ID for fetching campaign statistics

    traceIdstring

    Trace ID of the request