{
"account_id": "acct_01japd271aeatb7txrzr2xj8sg",
"data": {
"contact": {
"first_name": "Dominic",
"id": "ctc_01ja88cboqffhswjx8zbak3ykk",
"last_name": "Toretto",
"phone_number": "+18015551234"
},
"id": "cnv_01jav8xy7fe4nsay3c9deqxge9",
"phone_number": {
"campaign_id": null,
"id": "pn_01jsjwe4d9fx3tpymgtg958d9w",
"metadata": {
"location": "Downtown store"
},
"name": "(801) 555-6789",
"number": "+18015556789",
"type": "local"
}
},
"timestamp": "2024-10-21T23:29:41Z",
"type": "conversation.created"
}Events
conversation.created
Fires when a new conversation thread is created, on the first inbound message from a contact.
WEBHOOK
conversationCreated
{
"account_id": "acct_01japd271aeatb7txrzr2xj8sg",
"data": {
"contact": {
"first_name": "Dominic",
"id": "ctc_01ja88cboqffhswjx8zbak3ykk",
"last_name": "Toretto",
"phone_number": "+18015551234"
},
"id": "cnv_01jav8xy7fe4nsay3c9deqxge9",
"phone_number": {
"campaign_id": null,
"id": "pn_01jsjwe4d9fx3tpymgtg958d9w",
"metadata": {
"location": "Downtown store"
},
"name": "(801) 555-6789",
"number": "+18015556789",
"type": "local"
}
},
"timestamp": "2024-10-21T23:29:41Z",
"type": "conversation.created"
}Fires when a new conversation is created. A conversation is the thread that ties all messages between a specific phone number and a specific contact. Surge creates a new conversation the first time a contact messages one of your numbers (or the first time you message a new contact).
When a contact sends their first message, both
conversation.created and message.received fire. Subsequent messages on the same thread fire only message.received.
Common use case
Useconversation.created to create a support ticket, add a lead to your CRM, or notify your team when a new contact reaches out for the first time.Authorizations
Body
application/json
Response
200
Return a 200 status to indicate that the data was received successfully