Campaigns

Add new campaign

Changed on

Create a new campaign.

post/campaigns

Request

  • Base URL
    https://api2.ecomailapp.cz
  • URL
    https://api2.ecomailapp.cz/campaigns
  • Auth
    API key in header key

Request body

titlestring required

Campaign title. Maximum 255 characters.

from_namestring

Sender's name. Maximum 150 characters.

from_emailstring

Sender's email address.

reply_tostring

Reply-to email address.

subjectstring

Campaign subject line. Maximum 255 characters.

html_textstring

HTML content of the campaign. When you send it, it must not be empty.

campaign_typestring

Campaign type. Allowed values: email, sms, whatsapp, push_notification. Your account must have the channel enabled, otherwise the request fails with 403.

Response

OK

idinteger
titlestring
from_namestring
from_emailstring
reply_tostring
subjectstring
template_typestring
campaign_typestring
updated_atstring
created_atstring
archive_urlstring

Changes

    • breaking

      the response's property type changed from array to object for status

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      the request property became optional

    • info

      the request property became optional

    • info

      the request property became optional

    • info

      the request property became optional

    • info

      the request property became optional

    • info

      the request property became optional

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property to the response with the status