Skip to main content
Version: 2021-04-15

Create Email Campaign

POST 

/emails/public/v2/locations/:locationId/campaigns/email-campaign

deprecated

This endpoint has been deprecated and may be replaced or removed in future versions of the API.

Create a new email campaign

Request

Version stringrequired

API Version

Available options2021-04-15
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