The link.followed event is delivered when a contact first follows a shortened link that was included in a message sent from a Surge number. This event is only triggered on the first click of each link; subsequent clicks on the same link do not generate additional events.
postWebhooklinkFollowed
Payload
Example payload
{
"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",
"name": "(801) 555-6789",
"number": "+18015556789",
"type": "local"
}
},
"id": "msg_01jjnn7s0zfx5tdcsxjfy93et2",
"metadata": {}
},
"message_id": "msg_01jjnn7s0zfx5tdcsxjfy93et2",
"url": "https://yoursite.com/something?param=true"
},
"timestamp": "2024-10-21T23:29:41Z",
"type": "link.followed"
}Response
Return a 200 status to indicate that the data was received successfully