The power of integrating
EnvíaloSimple

+ HTTP API
+ Documentation
= Easy integration

API EnvíaloSimple

Our new API will allow you to integrate EnvíaloSimple with all your applications through simple URL calls, offering you countless functionalities, grouped by modules to facilitate their use and implementation.

You will be able to send your email marketing campaigns; create, modify, and delete contacts, contact lists, and campaigns; consult statistics and reports, and many more functionalities so you can integrate it with your applications.

Postman

If you use Postman, we provide the collection of methods for you to import into your environment.

View on Postman

Variable Setup

Our collection of methods requires the parameterization of the following Postman variables for proper operation:

NameValue
urlhttps://api.esmsv.com
tokenI6Ik9UZzFNakUyTVRVME9USXpNVGM0TUE9PSIsIntyuHVlIjoiMm9y…

Authentication

To use the new API, you must have an API key. For this, you must log into your account, go to Settings > API Key, and generate a new key.
When using the services, the authorization method must be present in the header where you must send this key (token).

Example:

curl --location --request GET 'https://api.esmsv.com/v1/administrator/profile' --header 'Authorization: eyJpdiI6Ik9UZzFNakUyTVRVME9USXpNVGM0TUE9PSIsInZhbHVlIjoiMm9yaGZPYzZqNjVwL1haakw5SlovakNKcEZCeWpGaBcDEfGhIjklMNopqMD0iLCJtYWMiOiJhODVmNDgxZWUxYWoPu2Jktm1MjU0ZDhmNmUzMjA3NDliOGQwYWJkZWFlMjFkNDA4NmNiODRhMjYxIn0='

Clarification: If you were already using the previous API and had created a key, you will not be able to use the same one; you must create a new one.

Response

All responses will have two sections: status and code.

Additionally, depending on the type of service, other sections will be added, which will be detailed in each of them.

NameDescription
statusThis will show the value “ok” when the process executes correctly and “error” when there is an error.
codeThis will show a success message when the process executes correctly or a detail when there are errors.

Errors

There are two types of errors: input data validation errors (CODE 422) and those specific to each service (CODE 400). Below are the validation errors (CODE 422) that are common to all services:

CodeDescription
is_not_acceptedValue not accepted.
invalid_urlInvalid URL.
invalid_dateIncorrect date.
invalid_alpha_formatThe value must contain only letters.
invalid_alpha_dash_formatThe value must contain only letters, numbers, dashes, and underscores.
invalid_alpha_num_formatThe value must contain only letters and numbers.
invalid_array_formatThe value must be an array.
attachedThis field has already been attached.
before_dateThe value must be a previous date.
before_or_equal_dateThe value must be a previous or equal date.
invalid_between_elementsInvalid number of elements.
invalid_between_size_fileInvalid file size.
invalid_between_numberInvalid value.
invalid_between_charactersInvalid number of characters.
invalid_booleanThe value must be true or false.
invalid_value_confirmedInvalid confirmed value.
invalid_date_formatInvalid date format.
invalid_date_equalIncorrect date.
invalid_value_differentThe value must be different.
invalid_value_digitsInvalid number of digits.
invalid_value_digits_betweenInvalid number of digits.
invalid_image_dimensionsInvalid image dimensions.
value_duplicateDuplicate value.
invalid_email_formatThe email format is incorrect.
invalid_velue_ends_withThe entered value is incorrect.
not_existsThe field is invalid.
is_not_fileThe field must be a file.
not_emptyThe field is required.
invalid_gt_elementsInvalid number of elements.
invalid_gt_size_fileInvalid file size.
invalid_gt_numericIncorrect value.
invalid_gt_charactersInvalid number of characters.
invalid_gte_elementsInvalid number of elements.
invalid_gte_size_fileInvalid file size.
invalid_gte_numericInvalid value.
invalid_gte_charactersInvalid number of characters.
invalid_imageThe field must be an image.
invalid_value_inInvalid value.
invalid_value_in_arrayInvalid value.
invalid_value_integerThe field must be an integer.
invalid_value_ipThe field must be a valid IP address.
invalid_ipv4_formatThe field must be a valid IPv4 address.
invalid_ipv6_formatThe field must be a valid IPv6 address.
invalid_json_formatThe field must be a valid JSON string.
invalid_lt_elementsInvalid number of elements.
invalid_lt_size_fileInvalid file size.
invalid_lt_numericInvalid value.
invalid_lt_charactersInvalid number of characters.
invalid_lte_elementsInvalid number of elements.
invalid_lte_size_fileInvalid file size.
invalid_lte_numericInvalid value.
invalid_lte_charactersInvalid number of characters.
invalid_max_elementsInvalid number of elements.
invalid_max_size_fileInvalid file size.
invalid_max_numericInvalid value.
invalid_max_charactersInvalid number of characters.
invalid_mimesInvalid file format.
invalid_mimetypesInvalid file format.
invalid_min_elementsInvalid number of elements.
invalid_min_size_fileInvalid file size.
invalid_min_numericInvalid value.
invalid_min_charactersInvalid number of characters.
multiple_ofInvalid value.
invalid_formatInvalid field format.
only_numericThe field must be numeric.
invalid_passwordPassword is incorrect.
is_not_presentThe field must be present.
prohibitedThe field is prohibited.
prohibited_ifThe field is prohibited.
prohibited_unlessThe field is prohibited.
relatableThe field cannot be associated with this resource.
requiredThe field is required.
is_not_same_thatThe fields must match.
invalid_count_elementsInvalid number of elements.
invalid_size_fileInvalid file size.
invalid_size_numberInvalid value.
invalid_count_charactersInvalid number of characters.
invalid_valueInvalid value.
only_charactersThe field must be a string of characters.
invalid_timezoneThe field must be a valid timezone.
is_usedThe field has already been registered.
error_upload_fileError uploading the file.
invalid_url_formatThe URL-type format of the field is invalid.
invalid_uuid_formatThe field must be a valid UUID.

Account 6

This module groups services to manage your account settings and view your activity summary.

Description

Returns administrator account information.

Output structure:

FieldDescription
idAccount ID
nameFirst and last name
usernameUsername
emailEmail address
timeZoneTime zone. See possible values at: Get time zones
countryCountry. See possible values at: Get countries
subscription.TypePlan type. Possible values:
Prepaid –> Prepaid
Monthly –> Monthly
subscription.QuotaPlan send quota. Only shown for Plan type = Monthly
subscription.TermBeginStart date. Only shown for Plan type = Monthly
subscription.TermEndEnd date. Only shown for Plan type = Monthly
subscription.CreditsAvailable credits
createdAccount creation date
publicArchivesURLURL to access the public campaign archive



Description

Allows editing the account settings.

Body
KeyValueDescription
nameJuan Pérez

First and last name. Required.

emailaccount@example.com

Email. Required.

timezone-10800

Time Zone. Required. See possible values at: Get time zones.

countryar

Country. Required. See possible values at: Get countries.


Description

Returns administrator account statistics.

Output structure:

FieldDescription
TotalSentTotal sends in the last month
AvgMonthlyTotalSentAverage sends in the last six months
campaigns.CountTotal campaigns created
campaigns.SentTotal sends in campaigns
autoresponders.CountTotal automations created
autoresponders.SentTotal sends in automations
maillists.CountNumber of active lists
activeMembers.CountNumber of active contacts
reads.CountTotal opens in campaigns and automations (total opens)
clicks.CountTotal clicks in campaigns and automations (total clicks)



Description

Returns a list of possible time zones for account configuration.

Output structure:

FieldDescription
labelDescription of the time zone
valueTime zone code. It will be used in Edit general account settings



Description

Returns a list of possible countries for account configuration.

Output structure:

FieldDescription
labelCountry description
valueCountry code. It will be used in Edit general account settings



Description

Returns a list of the account’s domains.

Output structure:

FieldDescription
idDomain ID
domainDomain name
statusDomain status. Possible values:
NotVerified (Not verified) /
Pending (Pending verification) / Verified (Verified but not authenticated) / Authenticated (Authenticated)


Body
KeyValueDescription
nameyourdomain.com

Filter by domain name

statusAuthenticated

Filter by domain status. Possible values: Pending (Pending verification) / Verified (Verified but not authenticated) / NotVerified (Not verified) / Authenticated (Authenticated).

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderByname

Criteria to sort domains. Possible values: name/id. Default: id.

orderasc

Sort type. Possible values: asc/desc. Default: desc.


Automations 15

This module will allow you to perform all management associated with automations from creation to activation.

Description

Returns a list of all automations. They can be filtered by various fields: name, status, and creation date.

Output structure:

FieldDescription
idAutomation ID
nameAutomation title
createdAutomation creation date
schedule_typeSending type. Possible values:
AutoresponderInmediate -> As soon as the event is detected
AutoresponderDeferred-> Scheduled
days_of_the_weekDays of the week it can be sent
momentTime when the automation will be sent. Possible values:
after -> After
before -> Before
onDay -> On the day
Only shown if Sending type = Scheduled
daysNumber of days. Only shown if Sending type = Scheduled and Moment = Before or After.
hourSending hour. Only shown if Sending type = Scheduled
eventTrigger event. See possible values at: Get automation trigger events.
statusAutomation status. Possible values:
Draft -> Draft
Paused -> Paused
Stopped -> Stopped
PendingforApproval -> Pending approval
Sending -> Active


Body
KeyValueDescription
filtertest

Filter by name or part of the automation name.

statusSending

Filter by automation status. Possible values: Draft / Sending / Paused / PendingForApproval / Stopped

createDateFrom2023-04-23

Filter by creation date from. Format: YYYY-MM-DD.

createDateTo2023-05-28

Filter by creation date to. Format: YYYY-MM-DD.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderByname

Criterion to order the automations. Possible values: name/id. Default: id.

orderdesc

Order type. Possible values: asc/desc. Default: desc.


Description

Returns the details of an automation. Note that depending on the trigger event and the type of sending, different fields are displayed.

Output structure:

FieldDescription
idAutomation ID
nameAutomation title
subjectSubject
previewTextPreview text
fromAliasSender name
fromEmailFrom
replyEmailReply to
eventTrigger event. See possible values at: Get automation trigger events.
maillistsContact list(s) (ID and Name). Only shown for Events = Subscription to a list, Unsubscription from a list, and Annual event
idCustomFieldCustom field code of type Annual event configured. Only shown for Trigger event = Annual event
relCampaignCampaign ID associated with the automation. Only shown for Events = Open, Click on any link, Click on specific link, and No clicks on a link
urlURL of the campaign associated with the automation. Only shown for Events = Click on specific link and No clicks on a link
daysNoClickNumber of days without click. Only shown for Event = No clicks on a link
createdAutomation creation date
schedule_typeType of sending. Possible values:
AutoresponderInmediate -> As soon as the event is detected
AutoresponderDeferred-> Scheduled
momentMoment when the automation will be sent. Possible values:
after -> After
before -> Before
onDay -> On the day
Only shown if Type of sending = Scheduled
daysNumber of days. Only shown if Type of sending = Scheduled and Moment = Before or After.
hourSending time. Only shown if Type of sending = Scheduled
daysOfTheWeekDays of the week it can be sent
statusAutomation status. Possible values:
Draft -> Draft
Paused -> Paused
Stopped -> Stopped
PendingforApproval -> Pending approval
Sending -> Active
contentAutomation content in HTML
trackLinkClicksTrack links
trackReadsCount opens
trackAnaliticsLink with Google Analytics

Errors:

CodeDescription
errorMsg_automationNotFoundNo automation exists with the provided ID.


URL Variables
KeyValueDescription
automation_id449

Automation Id. Required

Body

Description

Allows creating a new automation. Only the Title and the Trigger Event are required.

Output structure:

FieldDescription
idID of the created automation
nameTitle of the automation

Errors:

CodeDescription
errorMsg_relCampaignNotActiveThe reference campaign is in draft.
errorMsg_relCampaignNotFoundNo campaign exists with the provided ID.
errorMsg_relCampaignRequiredIt is required to provide the reference Campaign when a Link is provided.
errorMsg_mailListsIdsNotValidNo list exists with the provided ID.
errorMsg_specificUrlInvalidThe provided link does not exist.
errorMsg_idCFNotFoundNo custom field of Type = Annual Event exists with the provided ID.
errorMsg_relCampaignIsNotAllowedByEventProviding a reference Campaign is not allowed for the specified Event.
errorMsg_specificUrlIsNotAllowedByEventProviding a specific Link is not allowed for the specified Event.
errorMsg_idCFIsNotAllowedByEventProviding a specific Date is not allowed for the specified Event.
errorMsg_mailListsIdsIsNotAllowedByEventProviding Contact Lists is not allowed for the specified Event.
errorMsg_daysNoClickIsNotAllowedByEventProviding Days without click is not allowed for the specified Event.
errorMsg_contentOrcontentUrlOrtemplateIdOnly one of the fields can be entered: HTML Content or URL or Template.
errorMsg_TemplateIDNotFoundNo template exists with the provided ID.


Body
KeyValueDescription
nameFather's Day Promotion

Automation title. Required.

subjectHello %Member:CustomField1% %Member:CustomField2%

Automation subject. You can include custom fields using the “Custom field code” obtained from the “Get custom field details” service.

previewTextPreview text

Preview text.

fromAliasCompany S.A.

Sender name.

fromEmailadministrator@example.com

Email address from which the automation will be sent. Required only if the “fromAlias” field is filled.

replyEmailadministrator@example.com

Email address for “Reply to”.

content

%Member:CustomField1% %Member:CustomField2% Check out the promotions we have for you!

Email content in HTML. You can include custom fields using the “Custom field code” obtained from the “Get custom field details” service.

contentUrlhttp://google.com.ar

Generate HTML content of the automation from a URL.

templateId65bceb74cf2a51360090a4b6

Template ID.

eventclick_ones

Trigger event. See possible values at: Get trigger events. Required.

relCampaign230

Reference campaign ID. Required if a specific link is reported.

specificUrlhttp://www.google.com

Specific link of the reference campaign. See possible values at: Get links of a campaign.

daysNoClick3

Days without click.

mailListsIds[]36

Array of contact list IDs.

idCF12

Custom field ID corresponding to specific date. See possible values at: Get custom fields collection.

trackLinkClicks1

Track links. Possible values: 0/1. Default is 1.

trackReads0

Count opens. Possible values: 0/1. Default is 1.

trackAnalitics0

Link with Google Analytics. Possible values: 0/1. Default is 1.


Description

Allows editing all fields of an existing automation, taking into account the following considerations:

  • Only automations in Draft, Paused, or Stopped status can be modified.
  • If you want to clear the data, the parameters must be sent with a blank value.
  • When modifying a Stopped or Paused automation, it will automatically become Draft.

Errors:

CodeDescription
errorMsg_automationNotFoundNo automation exists with the provided ID.
errorMsg_nameIsRequiredThe automation Title cannot be left blank.
errorMsg_contentOrcontentUrlOrtemplateIdOnly one of the fields can be entered: HTML Content or URL or Template.
errorMsg_TemplateIDNotFoundNo template exists with the provided ID.
errorMsg_automationSendingIt is not possible to modify an Active automation.
errorMsg_automationPendingForApprovalIt is not possible to modify an automation under review.
errorMsg_relCampaignNotActiveThe referenced campaign is in draft.
errorMsg_relCampaignNotFoundNo campaign exists with the provided ID.
errorMsg_relCampaignRequiredIt is required to provide the reference Campaign when a Link is provided.
errorMsg_eventIsRequiredIt is required to provide a Trigger Event when Campaign or Link or List or Specific Date or Days without click is provided.
errorMsg_mailListsIdsNotValidNo list exists with the provided ID.
errorMsg_specificUrlInvalidThe provided link does not exist.
errorMsg_idCFNotFoundNo custom field of Type = Annual Event exists with the provided ID.
errorMsg_relCampaignIsNotAllowedByEventProviding a reference Campaign is not allowed for the specified Event.
errorMsg_specificUrlIsNotAllowedByEventProviding a specific Link is not allowed for the specified Event.
errorMsg_idCFIsNotAllowedByEventProviding a Specific Date is not allowed for the specified Event.
errorMsg_mailListsIdsIsNotAllowedByEventProviding Contact Lists is not allowed for the specified Event.
errorMsg_daysNoClickIsNotAllowedByEventProviding Days without click is not allowed for the specified Event.


Body
KeyValueDescription
id577

Automation Id. Required.

nameTest edit automation

Automation title.

subjectHello %Member:CustomField1% %Member:CustomField2%

Automation subject. You can include custom fields using the “Custom field code” obtained from the “Get custom field details” service.

previewTextPreview text

Preview text.

fromAliasCompany S.A.

Sender’s name.

fromEmailcompany@example.com

Email address from which the campaign will be sent. Required only if the “fromAlias” field is filled.

replyEmailemail@example.com

Email address for “Reply to”.

content

%Member:CustomField1% %Member:CustomField2% Check out the promotions we have for you!

Email content in HTML. You can include custom fields using the “Custom field code” obtained from the “Get custom field details” service.

contentUrlhttp://google.com.ar

Generate automation HTML content from a URL.

templateId65bceb74cf2a51360090a4b6

Template ID.

eventannual_event

Trigger event. See possible values at: Get trigger events. Required.

relCampaign230

Reference campaign ID. Required if a specific link is provided.

specificUrlhttp://google.com

Specific link of the referral campaign. See possible values at: Get links of a campaign.

daysNoClick3

Days without click.

mailListsIds[]36

Array of contact list IDs.

idCF3

Custom field ID corresponding to a specific date. See possible values at: Get collection of custom fields.

trackLinkClicks0

Track links. Possible values: 0/1. Default is 1.

trackReads0

Count opens. Possible values: 0/1. Default is 1.

trackAnalitics0

Link with Google Analytics. Possible values: 0/1. Default is 1.


Description

Allows previewing automations by email.
A preview of the automation will be sent to the specified emails. If there are custom fields in the content: it takes the value from a contact in the assigned list or any random contact if there is no list.

Errors:

CodeDescription
errorMsg_automationNotFoundNo automation exists with the provided ID.
errorMsg_warnPreviewLimitMaximum daily send limit exceeded.
errorMsg_notAllowedYou are not allowed to send previews.


Body
KeyValueDescription
id590

Automation ID. Required.

emails[]email@example.com

Array of emails. Required. Maximum: 5.


Description

Allows previewing automations via browser.
Returns an HTML of the automation to preview it in any browser. If there are custom fields in the content: it takes the value of the specified contact, otherwise it takes some contact from the assigned list, otherwise any random contact if there is no list.

Errors:

CodeDescription
errorMsg_automationNotFoundNo automation exists with the provided ID.


Body
KeyValueDescription
id590

Automation Id. Required.

emailemail@example.com

Email used to fill in the custom fields included in the automation.


Description

Allows generating a thumbnail of the automation content.

Errors:

CodeDescription
errorMsg_automationNotFoundNo automation exists with the provided ID.


Body
KeyValueDescription
id578

Automation Id. Required.

width300

Image width. Required. Minimum: 200, maximum: 600.

height600

Image height. Required. Minimum: 200, maximum: 600.


Description

Checks if the automation meets all the conditions to be activated. The response will include three additional sections:

  • canSend indicating whether the automation is in a condition to be activated.
  • errors showing a detailed list of reasons why it cannot be activated, if any.
  • warnings showing a detailed list of warnings that, while not preventing the activation of the automation, indicate areas for improvement, if any.

Errors:

CodeDescription
errorMsg_automationNotFoundNo automation exists with the provided ID.
errorMsg_automationIntegrityFail-subjectThe subject field is required.
errorMsg_automationIntegrityFail-replyToThe replyTo field is required.
errorMsg_automationIntegrityFail-fromToNameThe fromToName field is required.
errorMsg_automationIntegrityFail-fromToThe fromTo field is required.
errorMsg_automationIntegrityFail-contentThe automation has no content.
errorMsg_campaignSendingThe automation is active.
errorMsg_campaignPendingForApprovalThe automation is pending approval.
errorMsg_senderDomainNotVerifiedThe domain is not verified.
errorMsg_relCampaignNotFoundNo active campaign exists with the provided ID.
errorMsg_mailListsIdsNotValidNo list exists with the provided ID.
errorMsg_noListSelectedA list must be provided.
errorMsg_invalidCampaignSelectedA campaign must be provided.
errorMsg_invalidUrlA URL must be provided.
errorMsg_invalidCustomFieldA specific date must be provided.
errorMsg_invalidDaysNoClickDays without clicks must be provided.
errorMsg_contactListFilterYou do not have permission to activate automations.
errorMsg_spamRateErrorThresholdThe automation did not pass the SPAM check.
errorMsg_invalidMaillistsSelectedOne of the lists associated with the automation does not exist.

Warnings:

CodeDescription
errorMsg_campaignIntegrityFail-subjectShortThe subject field is short.
errorMsg_campaignIntegrityFail-subjectLongThe subject field is long.
errorMsg_spamRateWarningThresholdThe automation passed the SPAM check, but you can improve the result.
errorMsg_senderDomainNotAuthenticatedDomain not authenticated.
errorMsg_senderDmarcAllowedDomainIt is recommended to use your own domains to maintain a good reputation and improve your delivery capability.


Body
KeyValueDescription
id221

Automation Id. Required.


Description

Returns a list with all the links of a campaign for the creation and/or editing of automations whose trigger event requires the campaign URL (Events = Click on specific link and No clicks on a link)

Output structure:

FieldDescription
originalLinkLink to use in the automation

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign exists with the provided ID or it is in draft status.


Body
KeyValueDescription
id1

Campaign ID. Required.


Description

Returns a list with the possible trigger Events for the creation and/or editing of automations.

Detail of the values:

Below is a description of the current values:

ValueDescription
opener_campaignOpening of a campaign
click_anyClick on any link
click_oneClick on a specific link
no_click_oneNo click within a specific time period
subscriptionSubscription to a contact list
unsubscriptionUnsubscription from a contact list
annual_eventAnnual event


Body

Description

Allows activating a draft, paused, or stopped automation.

Output structure:

FieldDescription
idID of the activated automation
statusPending

Errors:

CodeDescription
errorMsg_automationNotFoundNo automation exists with the provided ID.
errorMsg_momentNotValidThe selected option in When to send for the automation event is not allowed.
errorMsg_automationIntegrityFail-subjectThe subject field must be provided.
errorMsg_automationIntegrityFail-replyToThe replyTo field must be provided.
errorMsg_automationIntegrityFail-fromToNameThe fromToName field must be provided.
errorMsg_automationIntegrityFail-fromToThe fromTo field must be provided.
errorMsg_automationIntegrityFail-contentThe automation has no content.
errorMsg_campaignSendingThe automation is active.
errorMsg_campaignPendingForApprovalThe automation is pending approval.
errorMsg_senderDomainNotVerifiedThe domain is not verified.
errorMsg_relCampaignNotFoundNo active campaign exists with the provided ID.
errorMsg_mailListsIdsNotValidNo list exists with the provided ID.
errorMsg_noListSelectedA list must be provided.
errorMsg_invalidCampaignSelectedA campaign must be provided.
errorMsg_invalidUrlA URL must be provided.
errorMsg_invalidCustomFieldA specific date must be provided.
errorMsg_invalidDaysNoClickDays without clicks must be provided.
errorMsg_contactListFilterYou do not have permission to activate automations.
errorMsg_spamRateErrorThresholdThe automation did not pass the SPAM check.
errorMsg_invalidMaillistsSelectedOne of the lists associated with the automation does not exist.


Body
KeyValueDescription
id590

Automation Id. Required.

interval3

Number of days after the event. Required. If interval = 0, it will be sent as soon as we detect the event; otherwise, it will be sent at a scheduled time.

momentafter

When to send. Possible values: before (before the event) | onDay (on the day of the event) | after (after the event). Required only if Number of days > 0.

time12

Time it will be sent. Required only if interval > 0.

timeMinute15

Minutes it will be sent. Required only if Number of days > 0.

days[]1

Which days of the week it can be sent. Possible values: 0 (Sunday) | 1 (Monday) | 2 (Tuesday) | 3 (Wednesday) | 4 (Thursday) | 5 (Friday) | 6 (Saturday). Required.


Description

Allows deleting one or multiple automations at once, considering that:

  • If you want to delete a single automation, the id must be passed as a parameter.
  • If you want to delete multiple automations, an array of Ids must be passed as a parameter. If some of the specified automations do not exist, they will be shown in the response under automationsNotFound.

Errors:

CodeDescription
errorMsg_automationNotFoundNo automation exists with the provided ID.
invalid_max_elementsA maximum of 100 records can be deleted. Only for multiple deletions.


Body
KeyValueDescription
id470

Id of automation to delete. Only one required: id (for deleting one automation) or array of ids (for deleting multiple automations).

ids[]6

Array of automation Ids to delete. Maximum 100. Only one required: id (for deleting one automation) or array of ids (for deleting multiple automations).


Description

Allows pausing an active automation.

Output structure:

FieldDescription
idID of the paused automation.
statusPaused

Errors:

CodeDescription
errorMsg_automationNotFoundNo automation exists with the provided ID.
errorMsg_automationNotActiveThe automation is in draft.
errorMsg_automationPausedThe automation is already paused.
errorMsg_automationStoppedThe automation is stopped.


Body
KeyValueDescription
id457

Id of automation. Required.


Description

Allows resuming a stopped or paused automation.

Output structure:

FieldDescription
idID of the resumed automation
statusPending

Errors:

CodeDescription
errorMsg_automationNotFoundNo automation exists with the provided ID.
errorMsg_automationSendingThe automation is active.
errorMsg_automationPendingForApprovalThe automation is pending approval.
errorMsg_automationNotPausedOrStoppedThe automation is in draft.


Body
KeyValueDescription
id457

Automation Id. Required.


Description

Allows duplicating an automation.

Output structure:

FieldDescription
idID of the new automation
nameName of the new automation

Errors:

CodeDescription
errorMsg_automationNotFoundNo automation exists with the provided ID.


URL Variables
KeyValueDescription
automation_id590

Automation Id. Required.


Campaigns 15

This module will allow you to manage everything related to campaigns from creation to sending.

Description

Returns a list of all campaigns. They can be filtered by various fields: name, status, send type, campaign type, creation date, and send date.

Output structure:

FieldDescription
idCampaign ID
nameCampaign title
typeCampaign type. Possible values:
Quick Campaign -> Regular
A/B Campaign -> A/B Test
createdCampaign creation date
type_sendSend type. Possible values:
Send Now -> Send now
One time scheduled -> Scheduled
Not scheduled -> Not scheduled
statusCampaign status. Possible values:
Draft -> Draft
Paused -> Paused
Stopped -> Stopped
PendingforApproval -> Pending approval
Sending -> Sending or Scheduled
Completed -> Sent
recipients_countNumber of recipients
schedule_send_dateCampaign scheduled date
Only for campaigns with Send type = Scheduled
start_dateSend start date
finish_dateSend end date


Body
KeyValueDescription
filterPromo

Filter by campaign name or part of the campaign name.

statusDraft

Filter by campaign status. Possible values: Draft / Completed / Sending / Paused / PendingForApproval / Stopped

typeSendsendNow

Filter by send type. Possible values: sendNow / scheduled.

createDateFrom2021-05-01

Filter by creation date from. Format: YYYY-MM-DD.

createDateTo2021-05-28

Filter by creation date to. Format: YYYY-MM-DD.

sendDateFrom2021-05-01

Filter by send date from. Format: YYYY-MM-DD.

sendDateTo2021-05-28

Filter by send date to. Format: YYYY-MM-DD.

limit10

Number of records to show per page. Maximum: 100.

page1

Page number to display.

orderByname

Criteria for ordering campaigns. Possible values: name/id. Default: id.

orderasc

Type of ordering. Possible values: asc/desc. Default: desc.

typeAB0

Type of campaign. Possible values: 1 (A/B Test) and 0 (Regular).


Description

Returns the details of a campaign. Keep in mind that:

  • For campaigns that are forwards, the original campaign and the type of forward will also be shown.

  • For campaigns that have automatic forwards configured, the type of forward, number of days, and schedule will also be shown.

  • For campaigns of Type = Test A/B, the data of each subject is added in subjects. The current subject remains for campaigns of Type = Regular.

Output structure:

FieldDescription
idCampaign ID
nameCampaign title
createdCampaign creation date
subjectSubject
previewTextPreview text
fromAliasSender name
fromEmailFrom
replyEmailReply to
typeCampaign type. Possible values:
Quick Campaign -> Regular
A/B Campaign -> Test A/B
subjects.partitionSubject type. Possible values:
A -> Subject A
B -> Subject B
subjects.subjectSubject
subjects.percentageSubject percentage
maillists.idContact list ID
maillists.nameContact list name
segments.idSegment ID
segments.nameSegment name
recipients_countTotal number of campaign recipients
type_sendSend type. Possible values:
Send Now -> Send now
One time scheduled -> Scheduled
Not scheduled -> Not scheduled
schedule_send_dateCampaign scheduled date
Only for campaigns with Send type = Scheduled
start_dateSend start date
finish_dateSend end date
trackLinkClicksTrack links
trackReadsCount opens
trackAnaliticsLink with Google Analytics
sendReportSend report
publicArchiveAdd to public archive
workspaceHow the content was created. Possible values:
designer -> Visual editor
expertCoder -> Programmer mode
externalUrl -> URL mode
contentCampaign content in HTML
statusCampaign status. Possible values:
Draft -> Draft
Paused -> Paused
Stopped -> Stopped
PendingforApproval -> Pending approval
Sending -> Sending or Scheduled
Completed -> Sent
resend.ofCampaignCampaign from which it is forwarded. Only shown for campaigns that are forwards of others.
resend.typeForward type. Possible values:
1 -> To contacts who did not open the campaign
2 -> To contacts who did not click on the content
3 -> To contacts who had soft bounces
4 -> Again to all contacts
resend.daysDays for forwarding. Only shown for campaigns with automatic forwards configured.
resend.hoursForwarding hour. Only shown for campaigns with automatic forwards configured.
resend.minsForwarding minutes. Only shown for campaigns with automatic forwards configured.

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign exists with the provided ID.


URL Variables
KeyValueDescription
campaing_id12

Campaign Id. Required.

Body

Description

Allows creating a new campaign. Only the Title is required.

Output structure:

FieldDescription
idID of the created campaign
nameTitle of the campaign

Errors:

CodeDescription
errorMsg_mailListsIdsOrSegmentIdOnly one of the fields can be entered: List(s) or Segments.
errorMsg_contentOrcontentUrlOrtemplateIdOnly one of the fields can be entered: HTML Content or Url or Template.
errorMsg_TemplateIDNotFoundNo template exists with the provided ID.
subject.not_required_on_ab_campaignFor campaigns Type = Test A/B, you cannot send subject. You must send an array of subjects.
subjects.only_on_ab_campaignFor campaigns Type = regular, you cannot send the subjects array. You must send only subject.
subjects.invalid_count_elementsFor campaigns Type = Test A/B, you must send both subjects.
subjects.invalid_subjects_percentageFor campaigns Type = Test A/B, the sum of the percentages must be 100.


Body
KeyValueDescription
nameFather's Day Promotions

Campaign title. Required.

subjectHello %Member:CustomField1% %Member:CustomField2%

Campaign subject. You can include custom fields using the “Custom field code” obtained from the “Get custom field details” service.

previewTextText for preview

Preview text.

fromAliasCompany S.A.

Sender’s name.

fromEmailadministrator@example.com

Email address from which the campaign will be sent. Required only if the “fromAlias” field is filled.

replyEmailadministrator@example.com

Email address for “Reply to”.

mailListsIds[]1

Array of contact list Ids.

segmentId19

Segment Id.

content

%Member:CustomField1% %Member:CustomField2% Check out the promotions we have for you!

Email content in Html. You can include custom fields using the “Custom field code” obtained from the “Get details of a custom field” service.

contentUrlhttp://google.com.ar

Generate campaign html content from a url.

templateId65983f41755d4e4c00e21007

Template Id.

trackLinkClicks1

Track links. Possible values: 0/1. Default is 1.

trackReads0

Count opens. Possible values: 0/1. Default is 1.

trackAnalitics0

Link with Google Analytics. Possible values: 0/1. Default is 1.

sendReport0

Send report. Possible values: 0/1. Default is 1.

publicArchive1

Add to public archive. Possible values: 0/1. Default is 0.

typeAB1

Campaign type. Possible values: 1 (A/B Test) and 0 (Regular). Default: 0 (Regular).

subjects[0][subject]Subject Test A

Subject A. If sent, both subjects and their percentages must be included.

subjects[0][percentage]50

Subject A percentage. If sent, both subjects and their percentages must be included.

subjects[1][subject]Test Subject B

Subject B. If sent, both subjects and their percentages must be included.

subjects[1][percentage]50

Subject B percentage. If sent, both subjects and their percentages must be included.


Description

Allows editing all fields of an existing campaign, taking into account the following considerations:

  • Only campaigns in Draft or Paused status can be modified.

  • If you want to clear the data, the parameters must be sent with a blank value.

  • When modifying a Paused campaign, it will automatically be set to Draft.

  • If any of the specified lists do not exist, they will be shown in the response under mailListsNotFound and will not be assigned to the campaign.

  • If the specified segment does not exist, it will be shown in the response under segmentNotFound and will not be assigned to the campaign.

  • The campaign Type cannot be modified.

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign exists with the provided ID.
errorMsg_mailListsIdsOrSegmentIdOnly one of the fields can be entered: List(s) or Segments.
errorMsg_contentOrcontentUrlOrtemplateIdOnly one of the fields can be entered: HTML Content or URL or Template.
errorMsg_TemplateIDNotFoundNo template exists with the provided ID.
errorMsg_campaignPausedThe campaign is paused.
errorMsg_campaignSendingThe campaign is sending or scheduled.
errorMsg_campaignPendingForApprovaThe campaign is pending approval.
errorMsg_campaignCompletedThe campaign has been sent.
subject.not_required_on_ab_campaignFor campaigns Type = Test A/B, you cannot send subject. You must send an array of subjects.
subjects.only_on_ab_campaignFor campaigns Type = regular, you cannot send the subjects array. You must send only subject.
subjects.invalid_count_elementsFor campaigns Type = Test A/B, you must send both subjects.
subjects.invalid_subjects_percentageFor campaigns Type = Test A/B, the sum of the percentages must be 100.


Body
KeyValueDescription
id4

Campaign ID. Required.

nameTest edit campaign

Campaign name.

subjectHello %Member:CustomField1% %Member:CustomField2%

Campaign subject. You can include custom fields using the “Custom field code” obtained from the “Get custom field details” service.

previewTextPreview text

Preview text.

fromAliasCompany S.A.

Sender name.

fromEmailcompany@example.com

Email address from which the campaign will be sent. Required only if the “fromAlias” field is filled.

replyEmailemail@example.com

Reply-to email address.

mailListsIds[]2

Array of contact list IDs.

segmentId1

Segment ID.

content

%Member:CustomField1% %Member:CustomField2% Check out the promotions we have for you!

Email content in HTML. You can include custom fields using the “Custom field code” obtained from the “Get custom field details” service.

contentUrlhttp://google.com.ar

Generate campaign HTML content from a URL.

templateId65bceb74cf2a51360090a4b6

Template ID.

trackLinkClicks0

Follow links. Possible values: 0/1. Default is 1.

trackReads0

Count opens. Possible values: 0/1. Default is 1.

trackAnalitics0

Link with Google Analytics. Possible values: 0/1. Default is 1.

sendReport0

Send report. Possible values: 0/1. Default is 1.

publicArchive1

Add to public archive. Possible values: 0/1. Default is 0.

subjects[0][subject]Subject Test A

Subject A. If sent, both subjects and their percentages must be included.

subjects[0][percentage]50

Percentage subject A. If sent, both subjects and their percentages must be included.

subjects[1][subject]Subject Test B

Subject B. If sent, both subjects and their percentages must be included.

subjects[1][percentage]50

Percentage subject B. If sent, both subjects and their percentages must be included.


Description

Allows previewing email campaigns.
A preview of the campaign will be sent to the specified emails. If you have custom fields in the content: it takes the value from a contact in the assigned list or any random user if there is no list.

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign exists with the provided ID.
errorMsg_warnPreviewLimitMaximum daily send limit exceeded.
errorMsg_notAllowedYou are not allowed to send previews.


Body
KeyValueDescription
id1

Campaign ID. Required.

emails[]email@example.com

Array of emails. Required. Maximum: 5.

subjectA

Subject to display. Possible values: A / B. Should only be sent for campaigns Type = Test A/B. Default: A.


Description

Allows previewing campaigns by browser.
Returns an HTML of the campaign to preview it in any browser. If it has custom fields in the content: it takes the value of the indicated contact, otherwise it takes some contact from the assigned list, otherwise any random user if there is no list.

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign exists with the provided ID.


Body
KeyValueDescription
id1

Campaign ID. Required.

emailemail@example.com

Email used to fill in the custom fields included in the campaign. If this data is not sent and the campaign has custom fields, they will be filled with random contact data.


Description

Checks if the campaign meets all the conditions to be sent. The response will include three additional sections:

  • canSend indicating whether the campaign is in a condition to be sent or not.
  • errors showing a detailed list of reasons why the campaign cannot be sent, if any.
  • warnings showing a detailed list of warnings that, while not preventing the campaign from being sent, indicate areas for improvement, if any.

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign exists with the provided ID.
errorMsg_campaignIntegrityFail-subjectThe subject field must be completed.
errorMsg_campaignIntegrityFail-replyToThe replyTo field must be completed.
errorMsg_campaignIntegrityFail-fromToNameThe fromToName field must be completed.
errorMsg_campaignIntegrityFail-fromToThe fromTo field must be completed.
errorMsg_campaignIntegrityFail-contentThe campaign has no content.
errorMsg_noListNoSegmentSelectedIt is necessary to associate an email list or a segment.
errorMsg_campaignPendingForApprovalThe campaign is pending approval.
errorMsg_campaignCompletedThe campaign has been sent.
errorMsg_maxSimultaneousCampaignLimitExceededThe maximum limit of simultaneously sending campaigns has been reached.
errorMsg_senderDomainNotVerifiedThe domain is not verified.
errorMsg_noContactsInMailListsOne of the lists has no contacts.
errorMsg_noContactsInSegmentsThe segment has no contacts.
errorMsg_contactListFilterYou do not have permission to send campaigns.
errorMsg_spamRateErrorThresholdThe campaign did not pass the SPAM check.
errorMsg_invalidMaillistsSelectedOne of the lists associated with the campaign does not exist.

Warnings:

CodeDescription
errorMsg_campaignIntegrityFail-subjectShortThe subject field is short.
errorMsg_campaignIntegrityFail-subjectLongThe subject field is long.
errorMsg_spamRateWarningThresholdThe campaign passed the SPAM check, but you can improve the result.
errorMsg_senderDomainNotAuthenticatedDomain not authenticated.
errorMsg_senderDmarcAllowedDomainIt is recommended to use your own domains to maintain a good reputation and improve your delivery capability.


Body
KeyValueDescription
id3

Campaign ID. Required.


Description

Allows sending a campaign that is in draft or stopped, considering that:

  • If the campaign is in draft, the Send Now field must always be indicated.
  • If the campaign is stopped, if the Send Now field is indicated, it will take the indicated value; otherwise, it will resume with the values already configured.

Additionally, an automatic resend can be scheduled.

Output structure:

FieldDescription
idID of the sent campaign
statusPending

Errors:

CodeDescription
errorMsg_campaignPausedThe campaign is paused.
errorMsg_campaignSendingThe campaign is sending or scheduled.
errorMsg_campaignPendingForApprovalThe campaign is pending approval.
errorMsg_campaignCompletedThe campaign has been sent.
errorMsg_campaignNotFoundNo campaign exists with the provided ID.
errorMsg_campaignIntegrityFail-subjectThe subject field must be completed.
errorMsg_campaignIntegrityFail-replyToThe replyTo field must be completed.
errorMsg_campaignIntegrityFail-fromToNameThe fromToName field must be completed.
errorMsg_campaignIntegrityFail-fromToThe fromTo field must be completed.
errorMsg_campaignIntegrityFail-contentThe campaign has no content.
errorMsg_noListNoSegmentSelectedIt is necessary to associate an email list or a segment.
errorMsg_maxSimultaneousCampaignLimitExceededThe maximum limit of simultaneously sending campaigns has been reached.
errorMsg_senderDomainNotVerifiedThe domain is not verified.
errorMsg_noContactsInMailListsSome of the lists have no contacts.
errorMsg_noContactsInSegmentsThe segment has no contacts.
errorMsg_contactListFilterYou do not have permission to send campaigns.
errorMsg_spamRateErrorThresholdThe campaign did not pass the SPAM check.
errorMsg_invalidMaillistsSelectedSome of the lists associated with the campaign do not exist.


Body
KeyValueDescription
id4

Campaign ID. Required.

sendNow0

Send now. Possible values: 1 (Send now) and 0 (Schedule). Only required when the campaign is in draft.

sendDate2022-12-31 11:00:00

Campaign scheduling date. Format: YYYY-MM-DD HH:MM:DD. Must be later than the current date and time. Required if sendNow = 0 (Schedule).

resend1

Schedule resend. Possible values: 0 (No) and 1 (Yes). Default is 0.

resendType2

Resend type. Required if Schedule resend = 1. Possible values: 1 (To contacts who did not open the campaign) / 2 (To contacts who did not click on the content) / 3 (To contacts who had soft bounces) / 4 (Again to all contacts)

resendDays7

Number of days for resending. Required if Schedule resend = 1. Maximum 999, minimum: 1.

resendHours17

Hour for resending. Required if Schedule resend = 1. Maximum 23, minimum: 0.

resendMins40

Minutes for resending. Required if Schedule resend = 1. Maximum 59, minimum: 0.


Description

Allows pausing a campaign that is sending, scheduled, or under review.

Output structure:

FieldDescription
idID of the paused campaign.
statusPaused

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign exists with the provided ID.
errorMsg_campaignNotActiveThe campaign is in draft.
errorMsg_campaignPausedThe campaign is already paused.
errorMsg_campaignCompletedThe campaign has been sent.
errorMsg_campaignStoppedThe campaign is stopped.
errorMsg_campaignNotPausedThe campaign could not be paused.


Body
KeyValueDescription
id112

Campaign ID. Required.


Description

Allows stopping a campaign that is sending, scheduled, under review, or paused.

Output structure:

FieldDescription
idID of the stopped campaign
statusStopped

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign exists with the provided ID.
errorMsg_campaignNotActiveThe campaign is in draft.
errorMsg_campaignCompletedThe campaign has been sent.
errorMsg_campaignStoppedThe campaign is already stopped.
errorMsg_campaignNotStoppedThe campaign could not be stopped.


Body
KeyValueDescription
id112

Campaign ID. Required.


Description

Allows resuming a stopped or paused campaign.

Output structure:

FieldDescription
idID of the resumed campaign
statusSending

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign exists with the provided ID.
errorMsg_campaignSendingThe campaign is sending or scheduled.
errorMsg_campaignPendingForApprovalThe campaign is pending approval.
errorMsg_campaignCompletedThe campaign has been sent.
errorMsg_campaignNotPausedOrStoppedThe campaign is in draft.
campaignBlockedCertain issues were detected in your campaign content.


Body
KeyValueDescription
id127

Campaign ID. Required.


Description

Allows deleting one or multiple campaigns at once, considering that:

  • If you want to delete a single campaign, the id must be passed as a parameter.
  • If you want to delete multiple campaigns, an array of Ids must be passed as a parameter. If some of the indicated campaigns do not exist, they will be shown in the response within campaignsNotFound.

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign exists with the provided ID.
invalid_max_elementsA maximum of 100 records can be deleted. Only for multiple deletions.


Body
KeyValueDescription
id113

Campaign ID to delete. Only one required: id (for deleting one campaign) or array of ids (for deleting multiple campaigns).

ids[]6

Array of campaign IDs to delete. Maximum 100. Only one required: id (for deleting one campaign) or array of ids (for deleting multiple campaigns).


Description

Allows duplicating a campaign.

Output structure:

FieldDescription
idNew campaign ID
nameNew campaign name

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign exists with the provided ID.


URL Variables
KeyValueDescription
campaing_id

Campaign ID. Required.


Description

Allows forwarding a campaign.

Output structure:

FieldDescription
idID of the forwarded campaign
nameName of the forwarded campaign

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign exists with the provided ID.
errorMsg_emptyMaillistsOrSegmentThe campaign cannot be forwarded because the contact list or segment no longer exists.
errorMsg_campaignNotCompletedThe campaign was not sent.


Body
KeyValueDescription
id11

Id of the campaign to resend. Required.

type4

Type of resend. Required. Possible values: 1 (To contacts who did not open the campaign) / 2 (To contacts who did not click on the content) / 3 (To contacts who had soft bounces) / 4 (Again to all contacts)

sendNow1

Send now. Required. Possible values: 1 (Send now) and 0 (Schedule).

sendDate2022-12-31 11:00:00

Resend scheduling date. Format: YYYY-MM-DD HH:MM:DD. Must be later than the current date and time. Required if sendNow = 0 (Schedule).


Description

Allows generating a thumbnail of the campaign content.

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign exists with the provided ID.


Body
KeyValueDescription
id26

Campaign ID. Required.

width300

Image width. Required. Minimum: 200, maximum: 600.

height600

Image height. Required. Minimum: 200, maximum: 600.


Campaigns/automation reports 10

This module will allow you to know the report and statistics of each sent campaign/automation.

Description

Returns the general report of a campaign/automation. Keep in mind that:

  • For campaigns of type = Test A/B, a statisticsDetails section is added with the detailed statistics for each Subject.

Output structure:

FieldDescription
campaign.nameName of the campaign/automation.
campaign.sendDateDate and time of sending. Only for campaigns.
publicURLPublic report URL
delivery.totalAudienceTotal contacts.
For Campaigns: It is the sum of all contacts included within the lists or segments to which the campaign was sent. Includes duplicates.
For automation: It is the sum of all contacts who met the event.
delivery.repeatedRepeated contacts.
Only for campaigns, automations do not have duplicates.
delivery.totalTotal contacts - Repeated contacts
delivery.bounces.hard.AmountHard bounces
delivery.bounces.hard.PercentagePercentage of hard bounces over total bounces
delivery.bounces.soft.AmountSoft bounces
delivery.bounces.soft.PercentagePercentage of soft bounces over total bounces
delivery.bounces.totalTotal bounces. These are emails that could not be delivered because the destination mail servers rejected them
delivery.bounces.totalPercentagePercentage of bounces over total contacts
delivery.pendingTotal pending. These are email addresses to which the system has not yet sent the mail
delivery.pendingPercentagePercentage of pending over total contacts
delivery.deliveredTotal delivered. Includes the total emails that reached the destination
delivery.deliveredPercentagePercentage of delivered over total contacts
performance.readsNumber of times the campaign/automation was opened
performance.uniqueReadsNumber of contacts who opened the campaign/automation
performance.readsPercentagePercentage of contacts who opened the campaign/automation over the total delivered
performance.clicksNumber of clicks made in the campaign/automation
performance.uniqueClicksNumber of contacts who clicked in the campaign/automation
performance.clicksPercentagePercentage of contacts who clicked in the campaign/automation over the total delivered
performance.shared.totalTotal shares
performance.shared.forwardto.AmountTotal shares by email
performance.shared.forwardto.PercentagePercentage of shares by email
performance.shared.facebook.AmountTotal shares on Facebook
performance.shared.facebook.PercentagePercentage of shares on Facebook
performance.shared.linkedin.AmountTotal shares on LinkedIn
performance.shared.linkedin.PercentagePercentage of shares on LinkedIn
performance.shared.twitter.AmountTotal shares on Twitter
performance.shared.twitter.PercentagePercentage of shares on Twitter
performance.shared.pinterest.AmountTotal shares on Pinterest
performance.shared.pinterest.PercentagePercentage of shares on Pinterest
performance.shared.whatsapp.AmountTotal shares on Whatsapp
performance.shared. whatsapp.PercentagePercentage of shares on Whatsapp
performance.unsubscriptions.totalTotal unsubscribes
performance.unsubscriptions.alreadyUnsubscribed.AmountTotal unsubscribes with reason Already unsubscribed
performance.unsubscriptions.alreadyUnsubscribed.PercentagePercentage of unsubscribes with reason Already unsubscribed
performance.unsubscriptions.irrelevant.AmountTotal unsubscribes with reason Irrelevant content
performance.unsubscriptions.irrelevant.PercentagePercentage of unsubscribes due to Irrelevant content
performance.unsubscriptions.neverSignUp.AmountTotal unsubscribes with reason Never signed up
performance.unsubscriptions.neverSignUp.PercentagePercentage of unsubscribes with reason Never signed up
performance.unsubscriptions.spam.AmountTotal unsubscribes with reason Considered SPAM
performance.unsubscriptions.spam.PercentagePercentage of unsubscribes with reason Considered SPAM
performance.unsubscriptions.tooOften.AmountTotal unsubscribes with reason Too frequent
performance.unsubscriptions.tooOften.PercentagePercentage of unsubscribes with reason Too frequent
performance.unsubscriptions.other.AmountTotal unsubscribes for other reasons
performance.unsubscriptions.other.PercentagePercentage of unsubscribes for other reasons
performance.unsubscriptions.oneClickUnsubscribe.AmountTotal unsubscribes with One-click unsubscribe option
performance.unsubscriptions.oneClickUnsubscribe.PercentagePercentage of unsubscribes with One-click unsubscribe option
performance.complaintsNumber of complaints. It is the number of recipients who marked the campaign/automation as spam
statisticsDetails.A.SubjectSubject A
statisticsDetails.A.ContentPercentageSend proportion (%) subject A
statisticsDetails.A.TotalRecipientsTotal sends subject A
statisticsDetails.A.SentRecipientsSends completed subject A
statisticsDetails.A.PendingRecipientsPending sends subject A
statisticsDetails.A.ContactsReadPercentageOpens (%) subject A
statisticsDetails.A.ReadAmountTotal opens subject A
statisticsDetails.A.UniqueReadAmountContacts with opens subject A
statisticsDetails.A.ContactsClickPercentageClicks (%) subject A
statisticsDetails.A.ClickAmountTotal clicks subject A
statisticsDetails.A.UniqueClickAmountContacts with clicks subject A
statisticsDetails.B.SubjectSubject B
statisticsDetails.B.ContentPercentageSend proportion (%) subject B
statisticsDetails.B.TotalRecipientsTotal sends subject B
statisticsDetails.B.SentRecipientsSends completed subject B
statisticsDetails.B.PendingRecipientsPending sends subject B
statisticsDetails.B.ContactsReadPercentageOpens (%) subject B
statisticsDetails.B.ReadAmountTotal opens subject B
statisticsDetails.B.UniqueReadAmountContacts with opens subject B
statisticsDetails.B.ContactsClickPercentageClicks (%) subject B
statisticsDetails.B.ClickAmountTotal clicks subject B
statisticsDetails.B.UniqueClickAmountContacts with clicks subject B
devices.mobileTotalTotal opens on Mobile
devices.mobilePercentagePercentage of opens on Mobile
devices.mobileAgentsDetails of opens on Mobile (Count by agent and Percentage)
devices.desktopTotalTotal opens on Desktop
devices.desktopPercentagePercentage of opens on Desktop
devices.desktopAgentsDetails of opens on Desktop (Count by agent and Percentage)
devices.tabletTotalTotal opens on Tablets
devices.tabletPercentagePercentage of opens on Tablets
devices.tabletAgentsDetails of opens on Tablets (Count by agent and Percentage)
devices.unknownTotalTotal opens on Unknown Devices
devices.unknownPercentagePercentage of opens on Unknown Devices

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign/automation exists with the provided ID.


URL Variables
KeyValueDescription
campaign_id100

Campaign/automation ID. Required.


Description

Returns the details of the campaign/automation openings.

Output structure:

FieldDescription
emailEmail of the contact who opened
dateDate and time of the opening
countryCodeCountry where the campaign/automation was opened (ISO Code)
cityCity where the campaign/automation was opened (Description)
platformDevice where the campaign/automation was opened
latitudeGeographic coordinate where the campaign/automation was opened (latitude)
longitudeGeographic coordinate where the campaign/automation was opened (longitude)
appApplication where the campaign/automation was opened

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign/automation exists with the provided ID.


Body
KeyValueDescription
id386

Campaign/automation Id. Required.

limit10

Number of records to show per page. Maximum: 100.

page1

Page number to display.

orderasc

Sort by date. Possible values: asc/desc. Default: desc.


Description

Returns the details of the clicks made in the campaign/automation.

Output structure:

FieldDescription
dateDate and time of the click
urlURL where the click was made
emailEmail of the contact who made the click

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign/automation exists with the provided ID.


Body
KeyValueDescription
id386

Campaign/automation Id. Required.

limit10

Number of records to show per page. Maximum: 100.

page1

Page number to display.

orderasc

Sort by date. Possible values: asc/desc. Default: desc.


Description

Returns the details of the shares of the campaign/automation.

Output structure:

FieldDescription
dateDate and time the campaign/automation was shared
viaMedium where the campaign/automation was shared. Possible values:
forwardto -> Email
facebook -> Facebook
twitter -> Twitter
linkedin -> LinkedIn
pinterest -> Pinterest
whatsapp -> WhatsApp
emailEmail of the contact who shared the campaign/automation

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign/automation exists with the provided ID.


Body
KeyValueDescription
id386

Campaign/automation Id. Required.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderasc

Sort by date. Possible values: asc/desc. Default: desc.


Description

Returns the details of the bounces (hard and soft) recorded for the campaign/automation.

Output structure:

FieldDescription
dateDate and time of the bounce
typeBounce type. Possible values:
soft -> Soft bounce
hard -> Hard bounce
emailEmail of the contact that bounced

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign/automation exists with the provided ID.


Body
KeyValueDescription
id386

Campaign/automation Id. Required.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderasc

Sort by date. Possible values: asc/desc. Default: desc.

typehard

Filter by bounce type. Possible values: soft/hard.


Description

Returns the details of unsubscribes made in the campaign/automation.

Output structure:

FieldDescription
dateDate and time of the unsubscribe
reasonReason for unsubscribing. Possible values:
irrelevant -> Irrelevant content
tooOften -> Too frequent
neverSignUp -> I never subscribed
alreadyUnsubscribed -> I already unsubscribed
spam -> I consider it SPAM
other -> Others
OneClickUnsubscribe -> One-click unsubscribe
noteAdditional notes when reason = Others is selected
emailEmail of the contact who unsubscribed

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign/automation exists with the provided ID.


Body
KeyValueDescription
id386

Campaign/automation Id. Required.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderasc

Sort by date. Possible values: asc/desc. Default: desc.


Description

Returns the details of complaints made in the campaign/automation.

Output structure:

FieldDescription
dateDate and time of the complaint
emailEmail of the contact who made the complaint

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign/automation exists with the provided ID.


Body
KeyValueDescription
id386

Campaign/automation Id. Required.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderasc

Sort by date. Possible values: asc/desc. Default: desc.


Description

Returns the details of excluded contacts either due to duplication or being on the exclusion list. Note that the latter were only recorded in previous versions; they are no longer recorded.

Output structure:

FieldDescription
emailEmail of the excluded contact
reasonReason for exclusion. Possible values:
duplicated -> Duplicated
banned -> On exclusion list

Errors:

CodeDescription
errorMsg_campaignNotFoundCampaign/automation with the provided ID does not exist.


Body
KeyValueDescription
id386

Campaign/automation ID. Required.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderasc

Sort by email. Possible values: asc/desc. Default: desc.


Description

Returns a file with the details of the contacts to whom the campaign/automation was sent.

Important: This information will only be available for 6 months from the sending of the campaign/automation, after that time it can no longer be downloaded.

Output structure:

A file sents.txt will be generated containing on each line: sending date, sending time, and email of the contact to whom the campaign/automation was sent.

Errors:

CodeDescription
errorMsg_campaignNotFoundCampaign/automation with the reported ID does not exist
errorMsg_campaignStatisticsNotFoundThe campaign/automation has not been sent yet
errorMsg_campaignSentsNotFoundThe file is no longer available because more than 6 months have passed since the campaign/automation was sent


Body
KeyValueDescription
id352

Campaign/automation Id. Required.


Description

Returns a file with the details of duplicate contacts.

Important: This information will only be available for 6 months from the sending of the campaign/automation, after that time it will no longer be downloadable.

Output structure:

A file duplicates.csv will be generated containing two data points: email of the repeated contact and number of repetitions.

Errors:

CodeDescription
errorMsg_campaignNotFoundNo campaign/automation exists with the reported ID
errorMsg_campaignStatisticsNotFoundThe campaign/automation has not yet been sent
errorMsg_campaignDuplicatesNotFoundThe file is no longer available because more than 6 months have passed since the sending of the campaign/automation


Body
KeyValueDescription
id9

Campaign/automation Id. Required.


Contact lists 6

This module groups services for managing contact lists that can be used in your campaigns.

Description

Returns a list of all contact lists. They can be filtered by name.

Output structure:

FieldDescription
idList ID
nameList name
countNumber of contacts
lastSendDate of last send


Body
KeyValueDescription
namename

Filter by name or part of the list name.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderByid

Criterion to order the lists. Possible values: name/id. Default: id.

orderdesc

Type of ordering. Possible values: asc/desc. Default: desc.



Description

Allows creating a new list.

Output structure:

FieldDescription
idID of the created list
nameName of the list


Body
KeyValueDescription
nameNew list

List name. Required. Special characters are not allowed.


Description

Allows editing a list.

Errors:

CodeDescription
errorMsg_contactListNotFoundNo list exists with the provided ID.


Body
KeyValueDescription
id1

List ID. Required.

nameTest list

List name. Required. Special characters are not allowed.


Description

Allows deleting a list.

Errors:

CodeDescription
errorMsg_listContactNotFoundNo list exists with the provided ID.


URL Variables
KeyValueDescription
list_id10

Id of list to delete. Required.


Description

Allows deleting multiple contact lists at once, considering that:

  • If some of the indicated lists do not exist, they will be shown in the response within mailListsNotFound.

Errors:

CodeDescription
invalid_max_elementsA maximum of 100 records can be deleted.


Body
KeyValueDescription
ids[]6

Array of list IDs to delete. Required. Maximum 100.


Contact reports 6

This module will allow you to know the details of the contact’s activity.

Description

Returns the details of campaign opens performed by the contact.

Output structure:

FieldDescription
dateDate and time of the open
countryCodeCountry from which it was opened
platformDevice from which it was opened
campaignNameCampaign name

Errors:

CodeDescription
errorMsg_contactNotFoundNo contact exists with the provided ID.


Body
KeyValueDescription
id2

Contact ID. Required.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderasc

Sort by date. Possible values: asc/desc. Default: desc.


Description

Returns the details of the clicks made by the contact.

Output structure:

FieldDescription
dateDate and time of the click
urlURL where the click was made
campaignNameName of the campaign

Errors:

CodeDescription
errorMsg_contactNotFoundNo contact exists with the provided ID.


Body
KeyValueDescription
id2

Contact ID. Required.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderasc

Sort by date. Possible values: asc/desc. Default: desc.


Description

Returns the details of the campaigns shared by the contact.

Output structure:

FieldDescription
dateDate and time the campaign was shared
viaMedium where the campaign was shared. Possible values:
forwardto -> Email
facebook -> Facebook
twitter -> Twitter
linkedin -> LinkedIn
pinterest -> Pinterest
whatsapp -> WhatsApp
campaignNameName of the campaign

Errors:

CodeDescription
errorMsg_contactNotFoundNo contact exists with the provided ID.


Body
KeyValueDescription
id2

Contact ID. Required.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderasc

Sort by date. Possible values: asc/desc. Default: desc.


Description

Returns the details of the bounces (hard and soft) that were recorded for the contact.

Output structure:

FieldDescription
dateDate and time of the bounce
typeType of bounce. Possible values:
soft -> Soft bounce
hard -> Hard bounce
campaignNameCampaign name

Errors:

CodeDescription
errorMsg_contactNotFoundNo contact exists with the provided ID.


Body
KeyValueDescription
id2

Contact ID. Required.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderasc

Sort by date. Possible values: asc/desc. Default: desc.

typehard

Filter by bounce type. Possible values: soft/hard.


Description

Returns the details of the unsubscribes made by the contact from the campaigns.

Output structure:

FieldDescription
dateDate and time of the unsubscribe
reasonReason for the unsubscribe. Possible values:
irrelevant -> Irrelevant content
tooOften -> Too frequent
neverSignUp -> I never subscribed
alreadyUnsubscribed -> I already unsubscribed
spam -> I consider it SPAM
other -> Others
campaignNameCampaign name

Errors:

CodeDescription
errorMsg_contactNotFoundNo contact exists with the provided ID.


Body
KeyValueDescription
id2

Contact ID. Required.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderasc

Sort by date. Possible values: asc/desc. Default: desc.


Description

Returns the details of complaints made by the contact from the campaigns.

Output structure:

FieldDescription
dateDate and time of the complaint
campaignNameName of the campaign

Errors:

CodeDescription
errorMsg_contactNotFoundNo contact exists with the provided ID.


Body
KeyValueDescription
id2

Contact ID. Required.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderasc

Sort by date. Possible values: asc/desc. Default: desc.


Contacts 8

This module will allow you to perform all management associated with contacts that will later be used in lists and/or segments.

Description

Returns a list with all contacts. They can be filtered by email or by list.

Output structure:

FieldDescription
idContact ID
emailContact email
createdCreation date
lastSendDate of last send
subscriptionsNumber of lists subscribed to

Errors:

CodeDescription
errorMsg_mailListNotFoundNo list found with the provided ID.


Body
KeyValueDescription
emailluis

Filter by email or part of the contact’s email.

listId2

Filter by contact list.

limit10

Number of records to show per page. Maximum: 100.

page1

Page number to display.

orderByid

Criterion to order the contacts. Possible values: email/id. Default: id

orderasc

Sorting type. Possible values: asc/desc. Default: desc.


Description

Returns the details of a contact.

Output structure:

FieldDescription
idContact ID
emailContact email
createdCreation date
lastActivityLast activity date
mailListsList(s) subscribed to (ID and Name)
customFieldsCustom fields (ID, Name, Type, and Value)
lastSendDate of last send
readsTotal opens
clicksTotal clicks
hardBounceHard bounces
softBounceSoft bounces
sharedShares
unsubscriptionUnsubscriptions
complaintComplaints

Errors:

CodeDescription
errorMsg_contactNotFoundNo contact exists with the provided ID.


URL Variables
KeyValueDescription
contact_id2

Contact ID. Required.

Body

Description

Allows creating a new contact, taking into account the following considerations:

  • Only the email address is required.
  • The contact will be assigned to the lists through another service.
  • To complete the custom fields, the following criteria will be used:
    • If the field is sent with a value, it will be completed with that value.
    • If the field is sent empty, the field will be completed with an empty value.
    • If the field is not sent, it will be completed with the default configured value (if any).

Output structure:

FieldDescription
idID of the created contact
emailEmail of the contact

Errors:

CodeDescription
errorMsg_contactAlreadyExistA contact with the same email already exists.
customsFieldsNotFoundThe indicated custom field does not exist.


Body
KeyValueDescription
emailsofia@example.com

New contact’s email. Required.

customFields[1]Sofia

Array of custom fields. The ID of the field to be filled must be placed as the key of the array. If it is a date type value, it must be in MM-DD format. In the case of a multiple options list, separate the options with commas and no spaces. For example: option1,option3.


Description

Allows editing a contact, taking into account the following considerations:

  • No field is required.
  • The contact will be assigned to lists through another service.
  • To edit custom fields, the following criteria will be used:
    • If the field is sent with a value, it is modified with the indicated value.
    • If the field is sent empty, it is modified with the indicated value (blank).
    • If the field is not sent, the field value is not updated and the current value remains.

Errors:

CodeDescription
errorMsg_contactNotFoundNo contact exists with the provided ID.
customsFieldsNotFoundThe indicated custom field does not exist.


Body
KeyValueDescription
id6

Contact id. Required.

customFields[1]Sofía

Array of custom fields. The id of the field to be completed must be placed as the key of the array. In the case of a date type value, it must be in MM-DD format. In the case of a multiple options list, separate the options with commas and no spaces. For example: option1,option3.


Description

Allows subscribing multiple contacts to a list, taking into account the following considerations:

  • Contacts that are excluded cannot be subscribed. In these cases, they will be shown in the response within contactExclude and will not be subscribed.
  • If some of the indicated contacts do not exist, they will be shown in the response within contactNotFound.

Errors:

CodeDescription
errorMsg_mailListNotFoundNo contact list exists with the provided ID.
invalidContactsNone of the contacts were subscribed either because they do not exist or because they are excluded


Body
KeyValueDescription
contactsIds[]4

Array of contact Ids to subscribe. Required. Maximum: 100 records.

listId1

List Id. Required.


Description

Allows unsubscribing multiple contacts from a list, taking into account the following considerations:

  • If some of the specified contacts do not exist, they will be shown in the response within contactNotFound.
  • Contacts that are not subscribed to the indicated list will be shown in the response within subscribeNotFound.

Errors:

CodeDescription
errorMsg_mailListNotFoundNo contact list exists with the provided ID.
invalidContactsNone of the contacts were unsubscribed either because they do not exist or because they were not subscribed to the indicated list.


Body
KeyValueDescription
contactsIds[]12

Array of contact Ids to unsubscribe. Required. Maximum: 100 records.

listId1

List Id. Required.


Description

Allows deleting multiple contacts, considering that:

  • If some of the indicated contacts do not exist, they will be shown in the response within contactsNotFound.

Errors:

CodeDescription
errorMsg_contactsNotFoundNone of the reported contacts exist.


Body
KeyValueDescription
contactsIds[]49

Array of contact Ids to delete. Required.


Description

Allows uploading contacts from a CSV file. Maximum file size: 30MB.

Errors:

CodeDescription
errorMsg_invalidCountColumnsInParamsThe number of columns in the file does not match the number indicated in the parameters.
errorMsg_columnEmailNotFoundThe Email column must be parameterized.
errorMsg_mailListNotFoundNo list exists with the indicated ID.
invalid_max_size_fileThe file size exceeded the maximum allowed: 30MB.


Body
KeyValueDescription
csv

CSV file. Required.

mailList6

List ID. Required.

qualifierdoubleQuote

Field delimiter. Required. Possible values: quote (Single quote) and doubleQuote (Double quote)

delimitercomma

Column separator. Required. Possible values: comma (Comma) / semicolon (Semicolon) / numberSign (Number sign) / dollarSign (Dollar sign)

ignoreFirstRow1

Ignore the first row of the file. Required. Possible values: 0 (No) and 1 (Yes).

columns[0]Email

Array indicating which field corresponds to each column of the CSV file. Possible values: Email (Corresponds to the Email column) CustomFieldX (Corresponds to the code of the custom field indicated for the column. See possible values in: Get collection of custom fields). Column values start at position 0. That is, columns[0] represents the first column of the CSV file.

columns[1]CustomField1
columns[2]CustomField4

Custom fields 7

This module groups services for managing custom fields used for contact information, subscription forms, and the customization of your campaigns.

Description

Returns a list with all custom fields. They can be filtered by name.

Output structure:

FieldDescription
idCustom field ID
nameCustom field name
codeCustom field code.
With this code you can include the custom fields in the subject and content of the campaign
typeField type. See possible values at: Get custom field types
validationValidation type. See possible values at: Get custom field validations. Shown only for Field type = Text field or Hidden field
validationCustomRegExpCustom validation. Shown only if Validation = Custom)
options_valuesPossible options. Shown only for Field type = List or List with multiple selection or List with single selection
value_defaultDefault value. Shown only for Field type = Text field or Hidden field or Annual event
date_valueDefault date. Shown only for Field type = Annual event


Body
KeyValueDescription
namefield

Filter by name or part of the custom field name.

typeText field

Filter by field type. See possible values at: Get custom field types.

limit10

Number of records to show per page. Maximum: 100.

page1

Page number to display.

orderByname

Criteria to order the fields. Possible values: name/id. Default: id.

orderasc

Order type. Possible values: asc/desc. Default: desc.


Description

Returns the details of a custom field.

Output structure:

FieldDescription
idID of the custom field.
nameName of the custom field
codeCode of the custom field.
With this code, you can include the custom fields in the subject and content of the campaign
typeField type. See possible values in: Get custom field types
validationValidation type. See possible values in: Get custom field validations Shown only for Field type = Text field or Hidden field.
validationCustomRegExpCustom validation. Shown only if Validation = Custom)
options_valuesPossible options. Shown only for Field type = List or List with multiple selection or List with single selection
value_defaultDefault value. Shown only for Field type = Text field or Hidden field or Annual event
date_valueDefault date. Shown only for Field type = Annual event

Errors:

CodeDescription
errorMsg_customFieldNotFoundCustom field with the provided ID does not exist.


URL Variables
KeyValueDescription
customfield_id3

Id of the custom field.


Description

Returns a list of validation types that will be used in the creation and/or editing of custom fields type = Text field or Hidden field.

Detail of the values:

Below is a description of the current values:

ValueDescription
Do not ApplyDisable
Numeric OnlyAccept digits only
Alpha OnlyAccept letters and spaces only
Alpha Numeric OnlyAccept letters, numbers, and spaces only
Email Format CheckAccept email addresses only
CustomCustom



Description

Returns a list of field types that will be used in the creation and/or editing of custom fields.

Details of the values:

Below is a description of the current values:

ValueDescription
Text fieldText field
Hidden fieldHidden field
Check boxList with multiple selection
Radio buttonList with single selection
Annual DateAnnual event
Drop listList



Description

Allows creating a new custom field, taking into account the following considerations:

  • Name and Field Type will always be required.
  • For fields of type = Text field or Hidden field, the following parameters will always be requested:
    • Validation type. It is required to provide a value.
    • Regular expression. It is required to provide a value for Validation = Custom.
    • Default value. It is not required to provide a value, so it can be left blank.
  • For Field Type = List or List with multiple selection or List with single selection, the Options parameter will always be requested, and it is required to provide a value.
  • For Field Type = Annual event, the Default value parameter will always be requested but it is not required to provide a value, so it can be left blank.

Errors:

CodeDescription
valueDefaultWithValidationCustomRegExpThe default value does not comply with the custom validation.


Body
KeyValueDescription
nameLast name

Field name. Required.

typeText field

Field type. See possible values at: Get custom field types. Required.

validation_typeDo not Apply

Validation type. See possible values at: Get custom field validations. Required if Field type = Text field or Hidden field.

validationCustomRegExp/^[0-9]*$/

Regular expression for field validation. Required for Validation = Custom.

value_defaultUnknown

Default value. Required for Field type = Text field or Hidden field. The value can be left blank.

options_values[]Option1

Array with option values. It is required to indicate at least one option with a value for Field Type = List or List with multiple selection or List with single selection.

date_value02-28

Default annual date. Format: MM-DD. Required for Field Type = Annual event. The value can be left blank.


Description

Allows editing a custom field, taking into account the following considerations:

  • Name and Field Type will always be required.
  • For fields of type = Text field or Hidden field, the following parameters will always be requested:
    • Validation type. It is required to indicate a value.
    • Regular expression. It is required to indicate a value for Validation = Custom.
    • Default value. It is not required to indicate a value, so it can be left blank.
  • For Field Type = List or List with multiple selection or List with single selection, the Options parameter will always be requested, and it is required to indicate a value.
  • For Field Type = Annual event, the Default value parameter will always be requested but it is not required to indicate a value, so it can be left blank.

Errors:

CodeDescription
errorMsg_customFieldNotFoundCustom field with the informed ID does not exist.
valueDefaultWithValidationCustomRegExpThe default value does not comply with the custom validation.


Body
KeyValueDescription
id8

Custom field ID to modify. Required.

nameDate of birth

Field name. Required.

typeAnnual Date

Field type. See possible values at: Get custom field types. Required.

validation_typeCustom

Validation type. See possible values at: Get custom field validations. Required if Field type = Text field or Hidden field.

validationCustomRegExp/^[0-9]*$/

Regular expression for field validation. Required for Validation = Custom.

value_defaultUnknown

Default value. Required for Field type = Text field or Hidden field. The value can be left blank.

options_values[]Option1

Array with option values. It is required to indicate at least one option with value for Field type = List or List with multiple selection or List with single selection.

date_value02-29

Default annual date. Format: MM-DD. Required for Field type = Annual event. The value can be left blank.


Description

Allows deleting a custom field as long as it is not being used in any segment, form, or automation.

Errors:

CodeDescription
errorMsg_customFieldNotFoundNo custom field exists with the provided ID.
errorMsg_customFieldIsUsedThe custom field cannot be deleted because it is being used in some segment, form, or automation.


URL Variables
KeyValueDescription
customfield_id5

ID of the custom field to delete. Required.


Exclusions 3

This module will allow you to manage all contact exclusions so that your campaigns are not sent to them.

Description

Returns a list of all exclusions created by User. They can be filtered by email.

Body
KeyValueDescription
emailemail@example.com

Filter by email.

limit5

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderByemail

Criterion to sort exclusions. Possible values: email/id. Default: id.

orderasc

Type of sorting. Possible values: asc/desc. Default: desc.


Description

Allows creating exclusions, considering that:

  • In case some of the indicated lists do not exist, they will be shown in the response within listsNotFound.

Errors:

CodeDescription
msg_listsNotFoundsNone of the informed lists exist.


Body
KeyValueDescription
always0

Type of exclusion. Possible values: 0 (on selected lists) / 1 (on all current and future lists).

emails[]exclusion@example.com

Array of contact Ids to exclude. Required. Maximum: 100 records.

listIds[]1

Array of list Ids. Required for Exclusion Type = On segmented lists. Maximum: 100 records.


Description

Allows deleting an exclusion created by User.

Errors:

CodeDescription
errorMsg_exclusionNotFoundNo exclusion exists with the provided ID.


URL Variables
KeyValueDescription
exclusion_id3

Id of exclusion to delete. Required.

Body

Files 6

Description

Returns a list of your images. They can be filtered by name or by a folder.

Output structure:

FieldDescription
idImage ID.
nameImage name.
extensionImage extension.
folderFolder ID where it is located.
fileImage URL.
created_dateUpload date.
thumbnailThumbnail URL.


Body
KeyValueDescription
namecreative

Filter by image name.

folder6926fd0ed8209d19b623115b

Filter by folder ID. Folder IDs are obtained at: Get folder collection.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderByname

Criterion to sort the images. Possible values: name | extension | created_date. Default: created_date.

orderasc

Type of sorting. Possible values: asc/desc. Default: desc.


Description

Returns a list of your image folders. They can be filtered by name.

Output structure:

FieldDescription
idFolder ID
nameFolder name


Body
KeyValueDescription
nameBrochures

Filter by folder name.

orderasc

Sort type. Possible values: asc/desc. Default: asc. Always sorts by folder name.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.


Description

Returns a list of your documents. They can be filtered by name or by a folder.

Output structure:

FieldDescription
idDocument ID
nameDocument name
extensionDocument extension
folderFolder ID where it is located.
fileDocument URL.
created_dateUpload date.


Body
KeyValueDescription
namecatalog

Filter by document name.

folder6926fd0ed8209d19b628515b

Filter by folder ID. Folder IDs are obtained in: Get folder collection.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderByname

Criteria to sort documents. Possible values: name | extension | created_date. Default: created_date.

orderasc

Sorting type. Possible values: asc/desc. Default: desc.


Description

Returns a list of your document folders. They can be filtered by name.

Output structure:

FieldDescription
idFolder ID
nameFolder name


Body
KeyValueDescription
nameLogos

Filter by folder name.

orderasc

Sort type. Possible values: asc/desc. Default: asc. Always sorts by folder name.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.


Description

Returns a list of your saved blocks. They can be filtered by name.

Output structure:

FieldDescription
idBlock ID.
nameBlock name.
thumbnailThumbnail URL.
created_dateUpload date.


Body
KeyValueDescription
namedesusc

Filter by block name.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderByname

Criterion to sort the blocks. Possible values: name | created_date. Default: created_date.

orderasc

Sorting type. Possible values: asc/desc. Default: desc.


Description

Returns the details of a block.

Output structure:

FieldDescription
idBlock ID
nameBlock name
created_dateCreation date
thumbnailThumbnail URL
htmlContent HTML

Errors:

CodeDescription
errorMsg_blockNotFoundNo block exists with the provided ID.


URL Variables
KeyValueDescription
block_id69459a53e1b805319487ba83

Block ID. Required.


Forms 2

This module will allow you to manage all form-related tasks so that contacts can subscribe to your lists.

Description

Returns a list of all forms. They can be filtered by name.

Output structure:

FieldDescription
idForm ID
nameForm name


Body
KeyValueDescription
nametest

Filter by name or part of the form’s name.

limit10

Number of records to show per page. Maximum: 100.

page1

Page number to display.

orderByname

Criterion to order the forms. Possible values: name/id. Default: id.

orderasc

Sorting type. Possible values: asc/desc. Default: desc.


Description

Returns the details of a form.

Output structure:

FieldDescription
idForm ID
nameForm name
mailListsContact list(s) (ID and Name)
urlSubsOKSuccessful subscription URL
urlSubsErrorFailed subscription URL
notificationEmailEmail to receive notification upon contact subscription
emailConfirm.subjectConfirmation email subject
emailConfirm.fromNameConfirmation email sender name
emailConfirm.fromEmailConfirmation email “from” address
emailConfirm.replyToEmailConfirmation email “reply-to” address
urlConfirmOKSuccessful subscription confirmation URL
urlConfirmErrorFailed subscription confirmation URL
scriptFormWebSiteCode for your website
urlFormWebSiteLink for social networks
codeQRQR code

Errors:

CodeDescription
errorMsg_formNotFoundNo form exists with the provided ID.


URL Variables
KeyValueDescription
form_id1

Form ID. Required.


Segments 1

This module allows you to get details of the segments that can be used in your campaigns.

Description

Returns a list of all segments. They can be filtered by name.

Output structure:

FieldDescription
idSegment ID
nameSegment name
createdCreation date
membersNumber of contacts
lastSendDate of last send


Body
KeyValueDescription
namename

Filter by name or part of the segment name.

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderByid

Criterion to order the segments. Possible values: name/id. Default: id.

orderasc

Type of ordering. Possible values: asc/desc. Default: desc.


Tasks 1

This module will allow you to get the details of the tasks generated from the tool.

Description

Returns a list of completed tasks. They can be filtered by status.

Output structure:

FieldDescription
idTask ID
dateDate and time of the task
typeTask performed. Possible values:
excludeContacts -> Load exclusions
contactsCopied -> Contact management>Copy
contactsMoved -> Contact management>Move
contactsExported -> Contact management>Export
contactsUnsubscribed -> Contact management>Unsubscribe
contactsDeleted -> Contact management>Delete
importContacts -> Contact import
segmentUpdated -> Segment update
reportSummary -> Campaign reports>Summary report
reportReads -> Campaign reports>Opens
reportClicks -> Campaign reports>Clicks
reportPerformance -> Campaign reports>Performance
reportDelivery -> Campaign reports>Delivered
reportShareds -> Campaign reports>Shared
reportUnsubscriptions -> Campaign reports>Unsubscriptions
reportExclusions -> Campaign reports>Exclusions
reportBounces -> Campaign reports>Bounces
reportComplaints -> Campaign reports>Complaints
reportSent -> Campaign reports>Sent
reportBans -> Export exclusions
reportSummaryMulti -> Select multiple reports>Export reports
downloadGDPR -> Export account data
exportSegment -> Segments>Export
exportList -> Lists>Export
details.totalTotal processed. This field is only shown for tasks that perform processing on records.
details.importedTotal contacts imported. This field is only shown for the importContacts task.
details.notImportedTotal contacts NOT imported. This field is only shown for the importContacts task.
details.sourceImportType of import. This field is only shown for the importContacts task. Possible values:
copypaste -> From Copy and Paste
.csv -> From CSV file
Gmail -> From Gmail
Outlook -> From Outlook
details.movedTotal contacts moved. This field is only shown for the contactsMoved task.
details.notMovedTotal contacts NOT moved. This field is only shown for the contactsMoved task.
details.copiedTotal contacts copied. This field is only shown for the contactsCopied task.
details.notCopiedTotal contacts NOT copied. This field is only shown for the contactsCopied task.
details.campaingNameName of the reference campaign. This field is only shown for tasks related to Campaign reports.
details.nameName of the segment or list. This field is only shown for tasks performed on segments or lists.
details.contactsNumber of contacts. This field is only shown for the segmentUpdated task.
downloadLinkLink to download the file. To download it, authentication will be required in the same way as in the rest of the services. Note: The downloadGDPR and segmentUpdated tasks are the only tasks that DO NOT generate files.
statusTask status. Possible values:
completed -> Completed
pending -> In process


Body
KeyValueDescription
statuscompleted

Filter by task status. Possible values: completed (Finished) and pending (In process).


Templates 1

This module will allow you to get the details of your templates, to then use them to create the content of your campaigns/automations.

Description

Returns a list of all templates. They can be filtered by tags.

Output structure:

FieldDescription
idTemplate ID
nameTemplate name
tagsTags
createdTemplate creation date
thumbUrlThumbnail URL


Body
KeyValueDescription
tags[]Christmas

Array of tags

tags[]Happy

Array of tags

limit10

Number of records to display per page. Maximum: 100.

page1

Page number to display.

orderByid

Criterion to order the templates. Possible values: creation/id. Default: creation.

orderasc

Type of ordering. Possible values: asc/desc. Default: desc.

nameChristmas

Filter by template name.