Skip to main content
Version: v3New

Create Email Campaign

POST 

/emails/locations/:locationId/campaigns/emails

Create a new email campaign

Request

Version stringrequired

API Version

Available optionsv3
locationId stringrequired

Location ID

application/json

Bodyrequired

    namestringrequired

    Campaign name

    editorTypestringrequired

    Editor type for the campaign content. Use html for code-editor campaigns or text for plain-text campaigns.

    Available optionshtmltext
    templateIdstring

    Existing template ID to create the campaign from. Omit this field to create a blank campaign.

    editorContentstring

    Optional initial editor content to persist immediately after campaign creation. Provide HTML or plain-text string content.

    parentFolderIdstring

    Parent folder ID

    timeZonestringrequired

    Timezone for the campaign

    userIdstringrequired

    ID of the user performing this action

    userNamestring

    Name of the user performing this action

application/json

Success

Schema
    idstringrequired

    Campaign ID

    sourcestring

    Source of the campaign

    sourceIdstring

    Source ID of the campaign

    namestring

    Campaign name

    statusstring

    Campaign status

    Available optionsallsentfailedarchiveddraftprocessingscheduledcancelledpaused
    campaignTypestring

    Campaign type

    campaignCategorystring

    Campaign category

    variationsobject[]

    AB test variation identifiers (available only for AB test campaigns)

    deletedbooleanrequired

    Whether the campaign is deleted

    createdAtstringrequired

    Created at timestamp

    updatedAtstringrequired

    Last updated timestamp

    traceIdstring

    Trace ID of request