Webhooks
Message received
A message arrived for the agent account on one of its channels. The event leaves out the content of a message Artil keeps; read it with its id. One it keeps no copy of comes whole.
WEBHOOK
message.received
{
"eventId": "<string>",
"name": "message.received",
"timestamp": "2023-11-07T05:31:56Z",
"data": {
"agent": {
"id": "<string>",
"name": "<string>"
},
"message": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from": "<string>",
"fromName": "<string>",
"subject": "<string>",
"toThread": "<string>",
"author": "<string>",
"authorName": "<string>",
"text": "<string>",
"thread": "<string>",
"client": "<string>",
"attachments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "<string>",
"size": 123,
"url": "<string>"
}
]
}
},
"cursor": "<string>"
}Headers
Body
application/json
Response
Artil removes the webhook
{
"eventId": "<string>",
"name": "message.received",
"timestamp": "2023-11-07T05:31:56Z",
"data": {
"agent": {
"id": "<string>",
"name": "<string>"
},
"message": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from": "<string>",
"fromName": "<string>",
"subject": "<string>",
"toThread": "<string>",
"author": "<string>",
"authorName": "<string>",
"text": "<string>",
"thread": "<string>",
"client": "<string>",
"attachments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "<string>",
"size": 123,
"url": "<string>"
}
]
}
},
"cursor": "<string>"
}