Channels
List channels
# List channels
What the workspace has connected. Every channel has the same fields: its status (`connected`, `pending`, `disconnected` or `not_connected`), where a send naming it goes with this key, the account with its address, name and chat link, quality, limits in numbers, the channel's rules, alerts, and whether the number is shared with the WhatsApp Business app. What a channel lacks or what is not known yet comes as `null`, an empty list or `false`.
## The channel object
A channel in `GET /v1/channels` has the same fields whatever the channel. When a channel lacks something or it is not known yet, the field still comes, as `null`, `[]` or `false`. The values are our own, not Meta's codes.
| Field | Description |
| --- | --- |
| `channel` | `whatsapp` or `instagram`. Put the same value in `channel` when sending. |
| `status` | `connected` when the channel is connected, `pending` when the number is connected but not ready at Meta yet, `disconnected` when Meta cut it off, and `not_connected` when the workspace does not have the channel. |
| `sends_to` | Where a send naming this channel goes with this key. With a live key it is the channel itself, with a test key `simulator`, and `null` means the send would be refused. |
| `account` | Who the workspace writes as on this channel. `null` when nothing is connected. |
| `account.address` | The WhatsApp number, for example `+7 727 355 00 00`, or the Instagram username, for example `@takhet.kz`. |
| `account.name` | The name customers see beside the number. `null` when there is none yet. |
| `account.url` | A link that opens a chat with the workspace, for a button on a site or a QR code. On WhatsApp it is `https://wa.me/` and the number's digits, and on Instagram `https://instagram.com/` and the username. |
| `quality` | Meta's rating of the number's messages, `high`, `medium` or `low`. A low rating means customers often block or report the number. `null` when there is no rating yet or the channel is not rated. |
| `limits` | The channel's limits, in numbers. |
| `limits.new_customers_per_day` | How many new customers the number may write to first in a moving 24 hours, for example 250 or 2000, by the number's tier at Meta. Answering customers who wrote to you in the last 24 hours does not count against it. `null` when there is no limit or it is not known yet. |
| `limits.messages_per_second` | How many messages a second at most leave the number. Usually 80, or 20 for a number that stays in the WhatsApp Business app too. The rest wait their turn. `null` on Instagram and when the channel is not connected. |
| `rules` | The channel's rules and what it can do. |
| `rules.free_text_window_hours` | For how many hours after a customer writes you may send them free text, 24 on WhatsApp. `null` when the channel has no such window. |
| `rules.templates` | Whether the channel takes approved templates. `true` on WhatsApp only. |
| `rules.receipts` | What the channel reports after a send: `delivered` for delivery, `read` for reading. WhatsApp reports both, Instagram only `read`. A status missing here never comes for a message on this channel. |
| `alerts` | Warnings about the channel, as a list of codes. Empty when all is well. The codes never change: |
| `alerts.payment` | Meta is not sending the number's messages because the WhatsApp account has no working card. Until a card is added at Meta, sends get the error `meta_payment`. |
| `alerts.restricted` | Meta restricted the account for a while, for example from starting conversations. The workspace's Channels page has the details and the date. |
| `alerts.policy_violation` | Meta reported a breach of its policies. Repeated breaches lead to restrictions. |
| `alerts.disable_scheduled` | Meta is about to disable the account. You can appeal in Meta Business Support Home. |
| `whatsapp` | Only what WhatsApp has. Each channel has such a key of its own, named after it, and only WhatsApp has one now. `null` when the channel is not connected. |
| `whatsapp.shared_with_phone_app` | `true` when the number stays in the WhatsApp Business app on the phone too. Staff write from the phone as well, and messages leave more slowly. |
## Response 200
```json
{
"data": [
{
"channel": "whatsapp",
"status": "connected",
"sends_to": "whatsapp",
"account": {
"address": "+7 727 355 00 00",
"name": "Zerno Coffee",
"url": "https://wa.me/77273550000"
},
"quality": "high",
"limits": {
"new_customers_per_day": 2000,
"messages_per_second": 80
},
"rules": {
"free_text_window_hours": 24,
"templates": true,
"receipts": [
"delivered",
"read"
]
},
"alerts": [],
"whatsapp": {
"shared_with_phone_app": false
}
},
{
"channel": "instagram",
"status": "not_connected",
"sends_to": null,
"account": null,
"quality": null,
"limits": {
"new_customers_per_day": null,
"messages_per_second": null
},
"rules": {
"free_text_window_hours": 24,
"templates": false,
"receipts": [
"read"
]
},
"alerts": [],
"instagram": null
}
]
}
```
GET /v1/channels
What the workspace has connected. Every channel has the same fields: its status (connected, pending, disconnected or not_connected), where a send naming it goes with this key, the account with its address, name and chat link, quality, limits in numbers, the channel's rules, alerts, and whether the number is shared with the WhatsApp Business app. What a channel lacks or what is not known yet comes as null, an empty list or false.
The channel object
A channel in GET /v1/channels has the same fields whatever the channel. When a channel lacks something or it is not known yet, the field still comes, as null, [] or false. The values are our own, not Meta's codes.
| Field | Description |
|---|---|
channel |
whatsapp or instagram. Put the same value in channel when sending. |
status |
connected when the channel is connected, pending when the number is connected but not ready at Meta yet, disconnected when Meta cut it off, and not_connected when the workspace does not have the channel. |
sends_to |
Where a send naming this channel goes with this key. With a live key it is the channel itself, with a test key simulator, and null means the send would be refused. |
account |
Who the workspace writes as on this channel. null when nothing is connected. |
account.address |
The WhatsApp number, for example +7 727 355 00 00, or the Instagram username, for example @takhet.kz. |
account.name |
The name customers see beside the number. null when there is none yet. |
account.url |
A link that opens a chat with the workspace, for a button on a site or a QR code. On WhatsApp it is https://wa.me/ and the number's digits, and on Instagram https://instagram.com/ and the username. |
quality |
Meta's rating of the number's messages, high, medium or low. A low rating means customers often block or report the number. null when there is no rating yet or the channel is not rated. |
limits |
The channel's limits, in numbers. |
limits.new_customers_per_day |
How many new customers the number may write to first in a moving 24 hours, for example 250 or 2000, by the number's tier at Meta. Answering customers who wrote to you in the last 24 hours does not count against it. null when there is no limit or it is not known yet. |
limits.messages_per_second |
How many messages a second at most leave the number. Usually 80, or 20 for a number that stays in the WhatsApp Business app too. The rest wait their turn. null on Instagram and when the channel is not connected. |
rules |
The channel's rules and what it can do. |
rules.free_text_window_hours |
For how many hours after a customer writes you may send them free text, 24 on WhatsApp. null when the channel has no such window. |
rules.templates |
Whether the channel takes approved templates. true on WhatsApp only. |
rules.receipts |
What the channel reports after a send: delivered for delivery, read for reading. WhatsApp reports both, Instagram only read. A status missing here never comes for a message on this channel. |
alerts |
Warnings about the channel, as a list of codes. Empty when all is well. The codes never change: |
alerts.payment |
Meta is not sending the number's messages because the WhatsApp account has no working card. Until a card is added at Meta, sends get the error meta_payment. |
alerts.restricted |
Meta restricted the account for a while, for example from starting conversations. The workspace's Channels page has the details and the date. |
alerts.policy_violation |
Meta reported a breach of its policies. Repeated breaches lead to restrictions. |
alerts.disable_scheduled |
Meta is about to disable the account. You can appeal in Meta Business Support Home. |
whatsapp |
Only what WhatsApp has. Each channel has such a key of its own, named after it, and only WhatsApp has one now. null when the channel is not connected. |
whatsapp.shared_with_phone_app |
true when the number stays in the WhatsApp Business app on the phone too. Staff write from the phone as well, and messages leave more slowly. |