{
"account_id": "acct_01japd271aeatb7txrzr2xj8sg",
"data": {
"id": "lnk_01kedctzhxexdbr5xf2bht5q84",
"message": {
"attachments": [],
"blast_id": null,
"body": "You have a new receipt from DT Precision Auto: https://yoursite.com/something?param=true",
"conversation": {
"contact": {
"email": null,
"first_name": "Dominic",
"id": "ctc_01ja88cboqffhswjx8zbak3ykk",
"last_name": "Toretto",
"metadata": {},
"phone_number": "+18015551234"
},
"id": "cnv_01jav8xy7fe4nsay3c9deqxge9",
"phone_number": {
"campaign_id": "cpn_01jjnn7s0zfx5tdcsxjfy93et2",
"id": "pn_01jsjwe4d9fx3tpymgtg958d9w",
"metadata": {
"location": "Downtown store"
},
"name": "(801) 555-6789",
"number": "+18015556789",
"type": "local"
}
},
"created_at": "2024-10-21T23:29:40Z",
"failure_reason": null,
"id": "msg_01jjnn7s0zfx5tdcsxjfy93et2",
"metadata": {},
"status": "delivered"
},
"message_id": "msg_01jjnn7s0zfx5tdcsxjfy93et2",
"url": "https://yoursite.com/something?param=true"
},
"timestamp": "2024-10-21T23:29:41Z",
"type": "link.followed"
}Events
link.followed
Fires the first time a contact clicks a shortened link in a message.
WEBHOOK
linkFollowed
{
"account_id": "acct_01japd271aeatb7txrzr2xj8sg",
"data": {
"id": "lnk_01kedctzhxexdbr5xf2bht5q84",
"message": {
"attachments": [],
"blast_id": null,
"body": "You have a new receipt from DT Precision Auto: https://yoursite.com/something?param=true",
"conversation": {
"contact": {
"email": null,
"first_name": "Dominic",
"id": "ctc_01ja88cboqffhswjx8zbak3ykk",
"last_name": "Toretto",
"metadata": {},
"phone_number": "+18015551234"
},
"id": "cnv_01jav8xy7fe4nsay3c9deqxge9",
"phone_number": {
"campaign_id": "cpn_01jjnn7s0zfx5tdcsxjfy93et2",
"id": "pn_01jsjwe4d9fx3tpymgtg958d9w",
"metadata": {
"location": "Downtown store"
},
"name": "(801) 555-6789",
"number": "+18015556789",
"type": "local"
}
},
"created_at": "2024-10-21T23:29:40Z",
"failure_reason": null,
"id": "msg_01jjnn7s0zfx5tdcsxjfy93et2",
"metadata": {},
"status": "delivered"
},
"message_id": "msg_01jjnn7s0zfx5tdcsxjfy93et2",
"url": "https://yoursite.com/something?param=true"
},
"timestamp": "2024-10-21T23:29:41Z",
"type": "link.followed"
}Fires the first time a contact follows a shortened link that Surge embedded in a message. Subsequent clicks on the same link by the same contact do not fire additional events.
Deprecation note: The top-level
message_id field in the payload is deprecated. Use the nested message.id field instead. message_id will be removed in a future API version.
Common use case
Uselink.followed to measure click-through rates on campaigns, trigger re-engagement sequences when a contact shows interest, or attribute web conversions back to specific messages.Authorizations
Body
application/json
Response
200
Return a 200 status to indicate that the data was received successfully