Webhook sent when a new text message is sent by a user or an agent.
Response
{
"function": "sms-sent",
"key": "xxxxxxxx",
"sender-url": "https://example.com"
"data": {
"recipent_id": "947",
"message": "Hello! How are you?",
"response": {
"sid": "SM1f0e8ae6ade23cb3c0ce4524424e406f",
"date_created": "Fri, 13 Aug 2023 01:16:24 +0000",
"date_updated": "Fri, 13 Aug 2023 01:16:24 +0000",
"date_sent": null,
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"to": "+15305551221",
"from": "+15104234545",
"body": "A Test Message",
"status": "queued",
"flags":["outbound"],
"api_version": "2023-04-01",
"price": null,
"uri": "\/2010-04-01\/Accounts\/ACXXXX\/Messages\/SM1f004f.json"
}
}
}