Marketing webhooks

Here you will find the list of all the marketing events you can track. Please consider the request schema and parameters for each of them when you decide to build the Notify URL on your side.

📘

Datetime parameters 🕗

The following parameters are present in all events we offer tracking for. Keep this information in mind whenever working with webhook datetime values.

ts_sent, ts_event : UTC Timezone
date_sent, date_event : Local Timezone
date : CET/CEST Timezone



Marketing email

Marked as Spam

Attribute nameData typeDescription
eventstring"spam"
emailstringrecipient email
idintegerinternal id of webhook
date_sentstringdate the campaign was sent (year-month-day, hour:minute:second)
date_eventstringdate the event occurred (year-month-day, hour:minute:second)
ts_sentintegertimestamp in seconds of when campaign was sent
ts_eventintegertimestamp in seconds of when event occurred
camp_idintegerinternal id of campaign
campaign namestringinternal name of campaign
reasonstringspam reason
tsintegertimestamp in seconds of when event occurred
tagstringinternal tag of campaign
{
  "id": xxxxxx,
  "camp_id": xx,
  "email": "[email protected]",
  "campaign name": "My First Campaign ",
  "date_sent": "2020-10-09 00:00:00",
  "date_event": "2020-10-09 00:00:00",
  "event": "spam",
  "reason": "undesired",
  "tag": "",
  "ts_sent": 1604933619,
  "ts_event": 1604933737,
  "ts": 1604937337,
}

Opened

Attribute nameData typeDescription
eventstring"opened"
emailstringrecipient email
idintegerinternal id of webhook
date_sentstringdate the campaign was sent (year-month-day, hour:minute:second)
date_eventstringdate the event occurred (year-month-day, hour:minute:second)
ts_sentintegertimestamp in seconds of when campaign was sent
ts_eventintegertimestamp in seconds of when event occurred
camp_idintegerinternal id of campaign
campaign namestringinternal name of campaign
tagstringinternal tag of campaign
tsintegertimestamp in seconds of when event occurred
segment_idsarray of integersnewly added fields for mails that are sent to a segment
{
  "id": xxxxxx,
  "camp_id": xx,
  "email": "[email protected]",
  "campaign name": "My First Campaign",
  "date_sent": "2020-10-09 00:00:00",
  "date_event": "2020-10-09 00:00:00",
  "event": "opened",
  "tag": "",
  "segment_ids": [
		 1,
     10,
  ],
  "ts_sent": 1604933619,
  "ts_event": 1604933737,
  "ts": 1604937337
}

Clicked

Attribute nameData typeDescription
eventstring"click"
emailstringrecipient email
idintegerinternal id of webhook
date_sentstringdate the campaign was sent (year-month-day, hour:minute:second)
date_eventstringdate the event occurred (year-month-day, hour:minute:second)
ts_sentintegertimestamp in seconds of when campaign was sent
ts_eventintegertimestamp in seconds of when event occurred
camp_idintegerinternal id of campaign
campaign namestringinternal name of campaign
tagstringinternal tag of campaign
tsintegertimestamp in seconds of when event occurred
URLstringurl clicked
segment_idsarray of integersnewly added fields for mails that are sent to a segment
{
  "id": xxxxxx,
  "camp_id": xx,
  "email": "[email protected]",
  "campaign name": "My First Campaign",
  "date_sent": "2020-10-09 00:00:00",
  "date_event": "2020-10-09 00:00:00",
  "event": "click",
  "tag": "",
  "segment_ids": [
		 1,
     10,
  ],
  "ts_sent": 1604933619,
  "ts_event": 1604933737,
  "ts": 1604937337,
  "URL": "https://myCampaignUrl.net"
}

Hard Bounced

Attribute nameData typeDescription
eventstring"hard_bounce"
emailstringrecipient email
idintegerinternal id of webhook
date_sentstringdate the campaign was sent (year-month-day, hour:minute:second)
date_eventstringdate the event occurred (year-month-day, hour:minute:second)
ts_sentintegertimestamp in seconds of when campaign was sent
ts_eventintegertimestamp in seconds of when event occurred
camp_idintegerinternal id of campaign
campaign namestringinternal name of campaign
sending_ipstringip used to send message
reasonstringhard bounce reason
tsintegertimestamp in seconds of when event occurred
tagstringinternal tag of campaign
{
  "id": xxxxxx,
  "camp_id": xx,
  "email": "[email protected]",
  "campaign name": "My First Campaign",
  "date_sent": "2020-10-09 00:00:00",
  "date_event": "2020-10-09 00:00:00",
  "reason": "deferred",  
  "event": "hard_bounce",
  "tag": "",  
  "sending_ip": "xxx.xxx.xxx.xxx",
  "ts_sent": 1604933619,
  "ts_event": 1604933737,
  "ts": 1604937337,
}

Soft Bounced

Attribute typeData typeDescription
eventstring"soft_bounce"
emailstringrecipient email
id1integerinternal id of webhook
date_sentstringdate the campaign was sent (year-month-day, hour:minute:second)
date_eventstringdate the event occurred (year-month-day, hour:minute:second)
ts_sentintegertimestamp in seconds of when campaign was sent
ts_eventintegertimestamp in seconds of when event occurred
camp_idintegerinternal id of campaign
campaign namestringinternal name of campaign
reasonstringsoft bounce reason
sending_ipstringip used to send message
tsintegertimestamp in seconds of when event occurred
tagstringinternal tag of campaign
{
  "id": xxxxxx,
  "camp_id": xx,
  "email": "[email protected]",
  "campaign name": "My First Campaign",
  "date_sent": "2020-10-09 00:00:00",
  "date_event": "2020-10-09 00:00:00",
  "reason": "deferred",  
  "event": "soft_bounced",
  "tag": "",
  "sending_ip": "xxx.xxx.xxx.xxx"
  "ts_sent": 1604933619,
  "ts_event": 1604933737,
  "ts": 1604937337,
}

Delivered

Attribute nameData typeDescription
eventstring"delivered"
emailstringrecipient email
idintegerinternal id of webhook
date_sentstringdate the campaign was sent (year-month-day, hour:minute:second)
date_eventstringdate the event occurred (year-month-day, hour:minute:second)
ts_sentintegertimestamp in seconds of when campaign was sent
ts_eventintegertimestamp in seconds of when event occurred
sending_ipstringip used to send message
camp_idintegerinternal id of campaign
campaign namestringinternal name of campaign
tsintegertimestamp in seconds of when event occurred
tagstringinternal tag of campaign
{
  "id": xxxxxx,
  "camp_id": xx,
  "email": "[email protected]",
  "campaign name": "My First Campaign",
  "date_sent": "2020-10-09 00:00:00",
  "date_event": "2020-10-09 00:00:00",
  "event": "delivered",
  "tag": "",
  "sending_ip": "xxx.xxx.xxx.xxx"
  "ts_sent": 1604933619,
  "ts_event": 1604933737,
  "ts": 1604937337,
}


Unsubscribe

Attribute nameData typeDescription
eventstring"unsubscribe"
emailstringrecipient email
idintegerinternal id of webhook
date_sentstringdate the campaign was sent (year-month-day, hour:minute:second)
date_eventstringdate the event occurred (year-month-day, hour:minute:second)
ts_sentintegertimestamp in seconds of when campaign was sent
ts_eventintegertimestamp in seconds of when event occurred
camp_idintegerinternal id of campaign
campaign namestringinternal name of campaign
list_idarray of integersthe internal list id's the recipient has been unsubscribed from
tsintegertimestamp in seconds of when event occurred
tagstringinternal tag of campaign
segment_idsarray of integersnewly added fields for mails that are sent to a segment
{
  "id": xxxxxx,
  "camp_id": xx,
  "email": "[email protected]",
  "campaign name": "My First Campaign",
  "date_sent": "2020-10-09 00:00:00",
  "date_event": "2020-10-09 00:00:00",
  "event": "unsubscribe",
  "tag": "",
  "sending_ip": "xxx.xxx.xxx.xxx",
   "list_id": [
    3,
    42,
  ],
  "segment_ids": [
		 1,
     10,
  ],
  "ts_sent": 1604933619,
  "ts_event": 1604933737,
  "ts": 1604937337,
}

Contact deleted

Attribute nameData typeDescription
eventstring"contact_deleted"
emailstringemail address of added recipient
idintegerinternal id of webhook
keystringinternal key
datestringdate the event occurred (year-month-day, hour:minute:second)
tsintegertimestamp in seconds of when event occurred
{
  "id": xxxxxx,
  "email": "[email protected]",
  "event": "contact_deleted",
  "key": "xxxxxxxxxxxxxxxxxx",
  "list_id": [
    35
  ],
  "date": "2020-10-09 00:00:00",
  "ts": 1604937111
}

Contact updated

Attribute nameData typeDescription
eventstring"contact_updated"
emailstringemail address of added recipient
idintegerinternal id of webhook
keystringinternal key
datestringdate the event occurred (year-month-day, hour:minute:second)
tsintegertimestamp in seconds of when event occurred
contentarray of stringsfull contact information with updates
{
  "id": xxxxxx,
  "email": "[email protected]",
  "event": "contact_updated",
  "key": "xxxxxxxxxxxxxxxxxx",
  "content": [
    {
    "name": "John",
    "lastname" : "Doe",
    "work_phone": "+506 2220 2307"
    }
  ],
  "date": "2020-10-09 00:00:00",
  "ts": 1604937111
}

Contact added to list

Attribute nameData typeDescription
eventstring"list_addition"
emailstringemail address of added recipient
idintegerinternal id of webhook
keystringinternal key
datestringdate the event occurred (year-month-day, hour:minute:second)
tsintegertimestamp in seconds of when event occurred
list_idarray of integersarray of lists where the contact is now present.

There is a possibility to transfer multiple emails as adding contacts to the list. Also, this webhook is triggered when a list of multiple contacts is added through the API endpoint.

{
  "id": xxxxxx,
  "email": "[email protected]",
  "event": "list_addition",
  "key": "xxxxxxxxxxxxxxxxxx",
  "list_id": [
		 34,
     12
  ],
  "date": "2020-10-09 00:00:00",
  "ts": 1604937111
}

Marketing SMS

Sent

Attribute nameData typeDescription
idintegerunique id generated for each payload
tostringmobile number
sms_countintegernumber of sms parts sent
credits_usedfloatcredits deducted
remaining_creditfloatremaining balance credit
msg_statusstringstatus of the message(sent, delivered, soft_bounce, hard_bounce)
datestringtime at which the event is generated
typestringtype of sms(marketing/transactional)
campaign_idintegercampaign id for campaign sms
{
	"id": 26570,
	"to": "918076721713",
	"sms_count": 1,
	"credits_used": 1.5,
	"remaining_credit": 11488.845,
	"msg_status": "sent",
	"date": "2024-10-11 14:19:59",
	"type": "marketing",
	"campaign_id": 220
}

Delivered

Attribute nameData typeDescription
idintegerunique id generated for each payload
tostringmobile number
msg_statusstringstatus of the message(sent, delivered, soft_bounce, hard_bounce)
datestringtime at which the event is generated
typestringtype of sms(marketing/transactional)
campaign_idintegercampaign id for campaign sms
statusstringstatus
descriptionstringBounce Reason for Failed to deliver message
ts_eventintegertimestamp in seconds of when event occurred
tagarray of stringsinternal tag of campaign
{
	"id": 26527,
	"status": "OK",
	"msg_status": "delivered",
	"description": "delivered",
	"to": "919102606271",
	"ts_event": 1728459617,
	"date": "2024-10-09 13:10:17",
	"tag": [
	"tag1name"
	],
	"type": "marketing",
	"campaign_id": 220
}

Replied

Attribute nameData typeDescription
idintegerunique id generated for each payload
tostringmobile number
msg_statusstringstatus of the message(sent, delivered, soft_bounce, hard_bounce etc.)
datestringtime at which the event is generated
typestringtype of sms(marketing/transactional)
campaign_idintegercampaign id for campaign sms
descriptionstringBounce Reason for Failed to deliver message, description of the event
ts_eventintegertimestamp in seconds of when event occurred
tagarray of stringsinternal tag of campaign
error_codeintegererror code
replystringreply of the sms
{
	"id": 26519,
	"msg_status": "replied",
	"error_code": 101,
	"description": "replied",
	"to": "919368207022",
	"reply": "Hi",
	"ts_event": 1728386415,
	"date": "2024-10-08 16:50:16",
	"tag": [
	"tag1name","tag2name"
	],
	"type": "marketing",
	"campaign_id": 220
}

Soft bounce

Attribute nameData typeDescription
idintegerunique id generated for each payload
tostringmobile number
msg_statusstringstatus of the message(sent, delivered, soft_bounce, hard_bounce etc.)
datestringtime at which the event is generated
typestringtype of sms(marketing/transactional)
campaign_idintegercampaign id for campaign sms
descriptionstringBounce Reason for Failed to deliver message, description of the event
ts_eventintegertimestamp in seconds of when event occurred
tagarray of stringsinternal tag of campaign
error_codeintegererror code
bounce_typestringhard bounce or soft bounce
{
	"id": 26519,
	"msg_status": "soft_bounce",
	"description": "Failed to deliver message for reasons unknown",
	"bounce_type": "soft_bounce",
	"error_code": 7,
	"to": "916778678623",
	"ts_event": 1728390422,
	"date": "2024-10-08 17:57:03",
	"tag": [
	"tag1name","tag2name"
	],
	"type": "marketing",
	"campaign_id": 220
}

Skip

Attribute nameData typeDescription
idintegerunique id generated for each payload
tostringmobile number
msg_statusstringstatus of the message(sent, delivered, soft_bounce, hard_bounce etc.)
datestringtime at which the event is generated
typestringtype of sms(marketing/transactional)
campaign_idintegercampaign id for campaign sms
descriptionstringBounce Reason for Failed to deliver message, description of the event
ts_eventintegertimestamp in seconds of when event occurred
tagarray of stringsinternal tag of campaign
messageIdintegermessage id for transactional sms
{
	"id": 26519,
	"msg_status": "skip",
	"description": "skip",
	"to": "12018577757",
	"ts_event": 1728390414,
	"date": "2024-10-08 17:56:54",
	"messageId": 0,
	"tag": [
	"tag1name","tag2name"
	],
	"type": "marketing",
	"campaign_id": 220
}