Objects
Messages
# Messages
## The message object
A message of the workspace: the responses to `POST /v1/messages` and `GET /v1/messages/{id}` and `data` of `message.status`. The same fields on every channel.
| Field | Description |
| --- | --- |
| `id` | The message's id. `GET /v1/messages/{id}` gives its status by it. |
| `to` | The customer's address on the channel: an E.164 number on WhatsApp and in test mode, and on channels without numbers the customer's address on the channel itself. |
| `contact_id` | The customer's id in the workspace. |
| `channel` | The channel the message went to: `whatsapp` or `instagram`, and `simulator` in test mode, where nothing reaches customers or Meta. |
| `type` | `text`, `template`, `voice`, `audio`, `image` or `video`. |
| `text` | For a text: the text itself in `body`. |
| `template` | For a template: `name`, `language` and the placeholder values in `parameters`. |
| `voice` | For a voice note: the file as it was sent, an uploaded file's `media_id` or a `url`. An audio file, a photo and a video come the same way under `audio`, `image` and `video`, a photo and a video with their `caption` when they have one. |
| `status` | The message's status, as described under Message statuses. |
| `error` | Why the message did not go: `code` and `message`. `null` when all is well. |
| `sent_by` | Who sent it: `api` through the API, `person` someone in the app, `phone` from an app on the phone: WhatsApp Business, where the number stays too, or Instagram. |
| `created_at` | When the message was made. |
| `sent_at` | When it was handed to the channel. `null` until then. |
| `delivered_at` | When it was delivered. `null` until the channel reports delivery, and always on a channel that does not. |
| `read_at` | When it was read. `null` until the channel reports reading, and always on a channel that does not. |
## Statuses
| Status | What it means |
| --- | --- |
| `queued` | Accepted, not handed to the channel yet: for example, it waits its turn within Meta's limits |
| `sent` | Handed to the channel |
| `delivered` | Delivered to the customer. Comes only if the channel reports delivery (`rules.receipts`) |
| `read` | Read by the customer. Comes only if the channel reports reading (`rules.receipts`) |
| `failed` | The channel could not send or deliver it, the reason is in error.code |
| `refused` | Not sent because our rules did not let it through, the reason is in error.code |
## The incoming message
An incoming message: `data` of `message.received` and the response to `POST /v1/test/inbound`. The same fields on every channel.
| Field | Description |
| --- | --- |
| `id` | The incoming message's id. |
| `contact_id` | The customer's id in the workspace. Use it to tie their messages together in your system. |
| `from` | The customer's address on the channel they wrote on: an E.164 number on WhatsApp and in test mode, and on channels without numbers, such as Instagram, the customer's address on the channel itself. Send your answer to it in `to`. |
| `name` | The customer's name. `null` when there is none. |
| `channel` | The channel the customer wrote on: `whatsapp` or `instagram`, and `simulator` in test mode, where nothing reaches customers or Meta. |
| `type` | The message type: `text`, `voice` for a voice note, `audio` for an audio file, `image` for a photo or `video` for a video. |
| `text` | The message text in `body`. |
| `voice` | For a voice note: the file. `GET /v1/media/{id}` downloads it by `media_id`, `mime_type` is its type, `sha256` its hash to check it by (`null` on Instagram), and `expires_at` says until when the channel keeps it, 7 days on WhatsApp and Instagram. We keep no copy, so download it before then. An audio file, a photo and a video come the same way under `audio`, `image` and `video`, and a photo and a video also have the customer's caption in `caption`, `null` when there is none. |
| `received_at` | When the message arrived. |
| `free_text_until` | Until when you may answer the customer with free text on this channel, by the channel's window (24 hours on WhatsApp). A new message from the customer moves it. `null` when the channel has no such window. |
## The contact object
A customer of the workspace: the responses to `GET /v1/contacts` and `GET /v1/contacts/{id}`. The messages of a conversation, from `GET /v1/contacts/{id}/messages`, are the two objects above, each with its `direction`: `inbound` or `outbound`.
| Field | Description |
| --- | --- |
| `id` | The contact's id in the workspace, the `contact_id` of their messages. |
| `name` | The customer's name, or their address on the channel when they gave none. |
| `phone` | Their number in E.164. `null` for a customer known only on a channel without numbers, such as Instagram. |
| `instagram_id` | The id they wrote from on Instagram, which `to` names to answer them there. `null` when they never wrote on Instagram. |
| `channel` | The channel they last wrote on, where a send on `auto` goes: `whatsapp` or `instagram`, and `simulator` in test mode. `null` when they never wrote. |
| `free_text_until` | Until when you may answer them with free text on that channel, by its window (24 hours on WhatsApp). `null` when they never wrote or the channel has no such window. |
| `consent` | Whether they agreed to WhatsApp templates, recorded with `POST /v1/contacts/{phone}/consent` or in the app. |
| `opted_out` | Whether they asked not to be written to. A template to them is then refused with `opted_out`. |
| `last_message_at` | When the last message went either way. `null` when there is none. |
| `created_at` | When the contact was made. |
Updated 4 December 2026
The message object
A message of the workspace: the responses to POST /v1/messages and GET /v1/messages/{id} and data of message.status. The same fields on every channel.
| Field | Description |
|---|---|
id |
The message's id. GET /v1/messages/{id} gives its status by it. |
to |
The customer's address on the channel: an E.164 number on WhatsApp and in test mode, and on channels without numbers the customer's address on the channel itself. |
contact_id |
The customer's id in the workspace. |
channel |
The channel the message went to: whatsapp or instagram, and simulator in test mode, where nothing reaches customers or Meta. |
type |
text, template, voice, audio, image or video. |
text |
For a text: the text itself in body. |
template |
For a template: name, language and the placeholder values in parameters. |
voice |
For a voice note: the file as it was sent, an uploaded file's media_id or a url. An audio file, a photo and a video come the same way under audio, image and video, a photo and a video with their caption when they have one. |
status |
The message's status, as described under Message statuses. |
error |
Why the message did not go: code and message. null when all is well. |
sent_by |
Who sent it: api through the API, person someone in the app, phone from an app on the phone: WhatsApp Business, where the number stays too, or Instagram. |
created_at |
When the message was made. |
sent_at |
When it was handed to the channel. null until then. |
delivered_at |
When it was delivered. null until the channel reports delivery, and always on a channel that does not. |
read_at |
When it was read. null until the channel reports reading, and always on a channel that does not. |
Statuses
| Status | What it means |
|---|---|
queued |
Accepted, not handed to the channel yet: for example, it waits its turn within Meta's limits |
sent |
Handed to the channel |
delivered |
Delivered to the customer. Comes only if the channel reports delivery (rules.receipts) |
read |
Read by the customer. Comes only if the channel reports reading (rules.receipts) |
failed |
The channel could not send or deliver it, the reason is in error.code |
refused |
Not sent because our rules did not let it through, the reason is in error.code |
The incoming message
An incoming message: data of message.received and the response to POST /v1/test/inbound. The same fields on every channel.
| Field | Description |
|---|---|
id |
The incoming message's id. |
contact_id |
The customer's id in the workspace. Use it to tie their messages together in your system. |
from |
The customer's address on the channel they wrote on: an E.164 number on WhatsApp and in test mode, and on channels without numbers, such as Instagram, the customer's address on the channel itself. Send your answer to it in to. |
name |
The customer's name. null when there is none. |
channel |
The channel the customer wrote on: whatsapp or instagram, and simulator in test mode, where nothing reaches customers or Meta. |
type |
The message type: text, voice for a voice note, audio for an audio file, image for a photo or video for a video. |
text |
The message text in body. |
voice |
For a voice note: the file. GET /v1/media/{id} downloads it by media_id, mime_type is its type, sha256 its hash to check it by (null on Instagram), and expires_at says until when the channel keeps it, 7 days on WhatsApp and Instagram. We keep no copy, so download it before then. An audio file, a photo and a video come the same way under audio, image and video, and a photo and a video also have the customer's caption in caption, null when there is none. |
received_at |
When the message arrived. |
free_text_until |
Until when you may answer the customer with free text on this channel, by the channel's window (24 hours on WhatsApp). A new message from the customer moves it. null when the channel has no such window. |
The contact object
A customer of the workspace: the responses to GET /v1/contacts and GET /v1/contacts/{id}. The messages of a conversation, from GET /v1/contacts/{id}/messages, are the two objects above, each with its direction: inbound or outbound.
| Field | Description |
|---|---|
id |
The contact's id in the workspace, the contact_id of their messages. |
name |
The customer's name, or their address on the channel when they gave none. |
phone |
Their number in E.164. null for a customer known only on a channel without numbers, such as Instagram. |
instagram_id |
The id they wrote from on Instagram, which to names to answer them there. null when they never wrote on Instagram. |
channel |
The channel they last wrote on, where a send on auto goes: whatsapp or instagram, and simulator in test mode. null when they never wrote. |
free_text_until |
Until when you may answer them with free text on that channel, by its window (24 hours on WhatsApp). null when they never wrote or the channel has no such window. |
consent |
Whether they agreed to WhatsApp templates, recorded with POST /v1/contacts/{phone}/consent or in the app. |
opted_out |
Whether they asked not to be written to. A template to them is then refused with opted_out. |
last_message_at |
When the last message went either way. null when there is none. |
created_at |
When the contact was made. |