API Documentation

[Base-URL] (Can be found from Application Settings => API => API Base URL)

Groups

Retrieve All Groups

GET
[Base-URL]/groups

ParametersTypeDescription
api_tokenstring (required)Your API Key
type_idinteger (optional)Will fetch the groups of specific a type otherwise all.Available type_id: ListBroadcastSending ServersSuppression
starts_frominteger (optional)From where you want to fetch the records, otherwise, it will fetch the records from 1st, (Maximum records would be 500).

Create a Group

POST
[Base-URL]/groups

ParametersTypeDescription
api_tokenstring (required)Your API Key
namestring (required)Group Name, whatever you need to be store.
type_idinteger (required)Store a group under which module.Available type_id:ListBroadcastSending ServersSuppression

Retrieve a Group

GET
[Base-URL]/groups/{id}

ParametersTypeDescription
api_tokenstring (required)Your API Key
idinteger (required)Group-ID needs to be fetched

Update a Group

PATCH
[Base-URL]/groups/{id}

ParametersTypeDescription
api_tokenstring (required)Your API Key
idinteger (required)Group-ID needs to be update
namestring (optional)New Group Name

Delete a Group

DELETE
[Base-URL]/groups/{id}

ParametersTypeDescription
api_tokenstring (required)Your API Key
idinteger (required)Group-ID needs to be deleted

Lists

Retrieve All Lists

GET
[Base-URL]/lists

ParametersTypeDescription
api_tokenstring (required)Your API Key
group_idinteger (optional)Will fetch the lists of specific a group, otherwise all.
starts_frominteger (optional)From where you want to fetch the records, otherwise, it will fetch the records from 1st, (Maximum records would be 500).

Create a List

POST
[Base-URL]/lists

ParametersTypeDescription
api_tokenstring (required)Your API Key
namestring (required)List Name, whatever you need to be store.
group_idinteger (required)Store a list under which group.
sending_server_idinteger (required)When a contact is added to the list, then it will be used to send an email (welcome, confirmation, unsubscribe, etc.) to that contact.
custom_field_idarray (optional)Custom Fields IDs want to associate with the List.
double_optinstring (optional)(Yes / No) If this option is set to “Yes”, then a confirmation email will be sent to that contact
welcome_emailstring (optional)(Yes / No) If this option is set to “Yes”, then a confirmation email will be sent to that contact
notificationstring (optional)(Enabled / Disabled) If this option is set to “Enabled”, then an email will be sent to the “Notification Email” address
notification_emailstring (optional)Depends on “notification”, the Email address that will receive a notification when contact is added
notification_criteriaarray (optional)Depends on “notification”, Notification emails will be receives when criteria is matched.Criteria can be:app => when contact is added via applicationapi => when contact is added via apiwebform => when contact is added via webformconfirm => when contact is confirmedunsub => when contact is unsubscribed

Retrieve a List

GET
[Base-URL]/lists/{id}

NameTypeDescription
api_tokenstring (required)Your API Key
idinteger (required)List-ID, needs to be fetched

Update a List

PATCH
[Base-URL]/lists/{id}

ParametersTypeDescription
api_tokenstring (required)Your API Key
idinteger (required)List-ID needs to be update
namestring (optional)New List Name
group_idinteger (required)New Group ID, will move the list to a given group.
sending_server_idinteger (required)New Sending Server ID, When a contact is added to the list, then it will be used to send an email (welcome, confirmation, unsubscribe, etc.) to that contact.
double_optinstring (optional)(Yes / No) If this option is set to “Yes”, then a confirmation email will be sent to that contact
welcome_emailstring (optional)(Yes / No) If this option is set to “Yes”, then a confirmation email will be sent to that contact
notificationstring (optional)(Enabled / Disabled) If this option is set to “Enabled”, then an email will be sent to the “Notification Email” address
notification_emailstring (optional)Depends on “notification”, the Email address that will receive a notification when contact is added
notification_criteriaarray (optional)Depends on “notification”, Notification emails will be receives when criteria are matched.Criteria can be:app => when contact is added via applicationapi => when contact is added via apiwebform => when contact is added via webformconfirm => when contact is confirmedunsub => when contact is unsubscribed

Delete a List

DELETE
[Base-URL]/lists/{id}

ParametersTypeDescription
api_tokenstring (required)Your API Key
idinteger (required)List-ID needs to be deleted

Custom Fields

Retrieve All Custom Fields

GET
[Base-URL]/custom-fields

ParametersTypeDescription
api_tokenstring (required)Your API Key
starts_frominteger (optional)From where you want to fetch the records, otherwise, it will fetch the records from 1st, (Maximum records would be 500).

Create a Custom Field

POST
[Base-URL]/custom-fields

ParametersTypeDescription
api_tokenstring (required)Your API Key
namestring (required)Custom Field Name, whatever you need to be store.
typestring (required)Custom Field would be as the type is defined.Type can be:textnumbertextareadateradiocheckboxdropdown
valuearray (optional)Value array will be used if the type is radio, checkbox, or dropdown to define the values.

Retrieve a Custom Field

GET
[Base-URL]/custom-fields/{id}

ParametersTypeDescription
api_tokenstring (required)Your API Key
idinteger (required)Custom-Field-ID, needs to be fetched

Update a Custom Field

PATCH
[Base-URL]/custom-fields/{id}

ParametersTypeDescription
api_tokenstring (required)Your API Key
idinteger (required)Custom-Field-ID, needs to be update
namestring (optional)New Custom Field Name

Delete a Custom Field

DELETE
[Base-URL]/custom-fields/{id}

ParametersTypeDescription
api_tokenstring (required)Your API Key
idinteger (required)Custom-Field-ID needs to be deleted

Recipients

Retrieve All Recipients

GET
[Base-URL]/contacts

ParametersTypeDescription
api_tokenstring (required)Your API Key
starts_frominteger (optional)From where you want to fetch the records, otherwise, it will fetch the records from 1st, (Maximum records would be 500).

Create a Recipient

POST
[Base-URL]/contacts

NameParametersDescription
api_tokenstring (required)Your API Key
emailstring (required)Contact Email, whatever you need to be store.
list_idinteger (required)Store a contact under which list.
formatstring (optional)HTML / Text, default would be HTML.
activestring (optional)Yes / No, default would be Yes.
confirmstring (optional)Yes / No, default would be No.
unsubscribedstring (optional)Yes / No, default would be No.
custom_fieldsarray (optional)An associative array, Key would the Custom-Field-ID like:custom_fields[2] => “John”

Retrieve a Recipient

GET
[Base-URL]/contacts/{id}

ParametersTypeDescription
api_tokenstring (required)Your API Key
idinteger (required)Recipient-ID, needs to be fetched

Update a Recipient

PATCH
[Base-URL]/contacts/{id}

ParametersTypeDescription
api_tokenstring (required)Your API Key
idinteger (required)Recipient-ID needs to be update
emailstring (optional)New Email
formatstring (optional)HTML / Text, default would be HTML.
activestring (optional)Yes / No, default would be Yes.
confirmstring (optional)Yes / No, default would be No.
unsubscribedstring (optional)Yes / No, default would be No.
custom_fieldsarray (optional)An associative array, Key would the Custom-Field-ID like:custom_fields[2] => “John”

Delete a Recipient

DELETE
[Base-URL]/contacts/{id}

ParametersTypeDescription
api_tokenstring (required)Your API Key
idinteger (required)Recipient-ID needs to be deleted

Campaign

Retrieve All Campaigns

GET
[Base-URL]/broadcasts

NameTypeDescription
api_tokenstring (required)Your API Key
group_idinteger (optional)Will fetch the broadcasts of specific a group, otherwise all.
starts_frominteger (optional)From where you want to fetch the records, otherwise, it will fetch the records from 1st, (Maximum records would be 500).

Create a Campaign

POST
[Base-URL]/broadcasts

ParameterTypeDescription
api_tokenstring (required)Your API Key
namestring (required)Broadcast Name, whatever you need to be store.
group_idinteger (required)Store a broadcast under which group.
email_subjectstring (optional)It will be displayed as an email subject.
htmlstring (optional)HTML content of the broadcast.
textstring (optional)Text content of the broadcast.

Retrieve a Campaign

GET
[Base-URL]/broadcasts/{id}

ParametersTypeDescription
api_tokenstring (required)Your API Key
idinteger (required)Campaign-ID, needs to be fetched

Update a Campaign

PATCH
[Base-URL]/broadcasts/{id}

ParameterTypeDescription
api_tokenstring (required)Your API Key
idinteger (required)Recipient-ID needs to be update
namestring (optional)New Broadcast Name
group_idinteger (required)New Group-ID, will move the broadcast to a given group.
email_subjectstring (optional)It will be displayed as an email subject.
htmlstring (optional)HTML content of the broadcast.
textstring (optional)Text content of the broadcast.

Delete a Campaign

DELETE
[Base-URL]/broadcasts/{id}

ParametersTypeDescription
api_tokenstring (required)Your API Key
idinteger (required)Campaign-ID needs to be deleted