Events
message.received
# message.received
A customer wrote to you on any connected channel, or, in test mode, through `POST /v1/test/inbound`. `data` holds the channel, the customer's address on it (`from`), the contact, the name, the text or a file, and the time. You may reply with free text until `free_text_until`, and `null` there means the channel has no such window.
`data` is the [incoming message](https://airbox.kz/en/docs/api/messages#the-incoming-message).
```json
{
"type": "message.received",
"timestamp": "2026-10-09T09:30:00+00:00",
"workspace": {
"id": "0199c5e2-0d4b-7e21-a3f6-8c2b1e7d9a40",
"name": "Smile Clinic"
},
"data": {
"id": "0199c5e2-6a29-7b40-8e0d-2f1c3a4b5d6e",
"contact_id": "0199c5e2-1f0a-7a42-8d1e-5b7c9a2e4f10",
"from": "+77011234567",
"name": "Asel",
"channel": "whatsapp",
"type": "text",
"text": {
"body": "Hello! When will my order be ready?"
},
"received_at": "2026-10-09T09:30:00+00:00",
"free_text_until": "2026-10-10T09:30:00+00:00"
}
}
```
Updated 4 December 2026
A customer wrote to you on any connected channel, or, in test mode, through POST /v1/test/inbound. data holds the channel, the customer's address on it (from), the contact, the name, the text or a file, and the time. You may reply with free text until free_text_until, and null there means the channel has no such window.
data is the incoming message.
JSON
{
"type": "message.received",
"timestamp": "2026-10-09T09:30:00+00:00",
"workspace": {
"id": "0199c5e2-0d4b-7e21-a3f6-8c2b1e7d9a40",
"name": "Smile Clinic"
},
"data": {
"id": "0199c5e2-6a29-7b40-8e0d-2f1c3a4b5d6e",
"contact_id": "0199c5e2-1f0a-7a42-8d1e-5b7c9a2e4f10",
"from": "+77011234567",
"name": "Asel",
"channel": "whatsapp",
"type": "text",
"text": {
"body": "Hello! When will my order be ready?"
},
"received_at": "2026-10-09T09:30:00+00:00",
"free_text_until": "2026-10-10T09:30:00+00:00"
}
}