Channel status
Know if WhatsApp, Instagram, Messenger and email are connected, with which account and how healthy, before promising a message will go out.
Before sending something over a channel, it is worth knowing whether that channel is connected and healthy. GET /workspaces/{workspaceId}/channels/status tells you for all four types —WhatsApp, Instagram, Messenger and email— in a single call.
Scope
channels:read. It does not consume Energy. It does not return credentials: no tokens, no PIN, no webhook path. Connecting, reconnecting and disconnecting a channel is done from the Meteor panel.
import { Met } from '@meteor.ia/sdk';
const met = new Met(process.env.MET_KEY!, { workspaceId: 42 });
const { data } = await met.channels.status();
for (const channel of data) {
console.log(channel.type, channel.connected, channel.health, channel.reason);
for (const account of channel.accounts) console.log(' ', account.display, account.health);
}
All four types always arrive, in the same order, connected or not.
What each field says
| Field | What it means |
|---|---|
connected | The channel is connected in your workspace. |
channel_id | The channel's id for the rest of the operations (GET /channels/{channelId}/config, WhatsApp sends). null if it was never connected. |
accounts[] | Each WhatsApp number, Instagram account, Facebook Page or email inbox, with display (what your customer sees), is_active and its own health. |
health | ok, attention, disconnected or not_connected. It is the worst health among its active accounts. |
reason | Why it is not ok (below). |
last_synced_at | When Meteor last synced that account with the provider. |
The reasons
reason | What to do |
|---|---|
line_not_operational | The WhatsApp number did not finish verifying or registering. Finish the setup from the panel. |
quality_low | Meta rated the number's quality as red. Lower the volume of marketing templates. |
authorization_expiring | The account's permission expires in less than 7 days. Reconnect it from the panel. |
authorization_expired | The permission expired: what comes in through that account no longer arrives. Reconnect it from the panel. |
account_inactive | The account is turned off in the panel; it does not count toward the channel's health. |
no_accounts | The channel is connected but has no active account. |
If one account goes down and the others stay healthy, the channel is in attention: it keeps answering through the others. It is only disconnected when all of them went down.
The health of your accounts
GET /workspaces/{workspaceId}/health (channels:read scope) sums up an account by component. If you operate your clients' accounts as a Tech Partner, don't check them one by one: GET /partner/accounts/health (partner:clients:read scope) returns them paginated, up to 50 per page: a larger limit is adjusted to 50. Neither consumes Energy.
let cursor: string | undefined;
do {
const page = await met.workspaces.accountsHealth({ limit: 50, starting_after: cursor });
for (const account of page.data) {
if (account.status === 'error') continue; // Couldn't be checked: retry after retry_after.
console.log(account.workspace_id, account.status, account.checks.access.blocked);
}
cursor = page.next_cursor ?? undefined;
} while (cursor);
| Field | What it means |
|---|---|
status | healthy, degraded, unhealthy, not_connected or error. The worst among its components. |
error, retry_after | If a component couldn't be checked, what happened and how many seconds to wait. status: error doesn't mean the account is in bad shape: Meteor couldn't find out. Don't pause or notify the merchant because of it. If another component is in bad shape, status says unhealthy and these two fields still arrive. |
timestamp | When the check was made. |
checks.channels | status, reason and channels, the same as channels/status. |
checks.access | status, blocked, reason (trial_expired, plan_inactive, plan_deactivated, period_expired, contacts_limit, over_limit or suspended) and subscription_status. energy_depleted leaves the account degraded: it isn't blocked, but its Mets don't answer until it has balance. |
The list walks your portfolio in batches: a page may return fewer accounts than limit even with has_more: true. Keep passing next_cursor until it's false.
It only returns accounts attributed to you. It leaves out the ones whose owner revoked your access: those answer 403 workspace_access_revoked when queried, and appear in GET /partner/clients with access_revoked_at. An account not attributed to you answers 403 workspace_not_attributed.
All the codes
These are the codes of the query and of the channel.disconnected and channel.health_updated webhooks. They are a contract: new ones may appear, but existing ones don't get renamed. Code with a default case.
| Code | Where it appears | What it means | What you can do |
|---|---|---|---|
line_not_operational | Query | The number didn't finish verifying or registering. | Finish the setup. |
quality_low | Query and channel.health_updated | Meta rated the number's quality red. | Review template volume and content. |
authorization_expiring | Query | The permission expires in less than 7 days. | Reconnect. |
authorization_expired | Query | The permission expired. | Reconnect. |
account_inactive | Query | The account is turned off in the panel. | Nothing, unless it shouldn't be. |
no_accounts | Query | The channel is connected with no active account. | Reconnect. |
disconnected_manually | channel.disconnected | Disconnected in the panel or through the API. | Reconnect if it wasn't you. |
account_deleted_by_provider | channel.disconnected | The account was deleted at the provider. | Tell the merchant. |
account_offboarded_by_provider | channel.disconnected | The provider removed the account from the integration. | Reconnect. |
account_disabled_by_provider | channel.disconnected | The provider disabled the account. | Tell the merchant; it usually takes an appeal to Meta. |
permissions_revoked | channel.disconnected | The merchant withdrew the permission. | Reconnect. |
linked_page_disconnected | channel.disconnected | The Page Instagram depended on was disconnected. | Reconnect. |
credentials_rejected | channel.disconnected | The provider rejected the credentials. | Reconnect. |
messaging_limit_lowered | channel.health_updated | Meta lowered the messaging limit. | Review usage. |
messaging_limit_raised | channel.health_updated | Meta raised the limit. | Nothing. |
quality_recovered | channel.health_updated | Quality recovered. | Nothing. |
account_restricted | channel.health_updated | Meta restricted the account. | Tell the merchant. |
account_policy_violation | channel.health_updated | Meta recorded a policy violation. | Review usage; if it's misuse, decide whether to block it. |
account_sharing_removed | channel.health_updated | Shared access to the account was removed. | Review and reconnect. |
account_reconnected | channel.health_updated | The account reconnected. | Nothing. |
account_scheduled_for_disable | channel.health_updated | Meta scheduled the account to be disabled. | Tell the merchant right away. |
account_reinstated | channel.health_updated | Meta reinstated the account. | Nothing. |
What it does not do
Health comes from what Meteor last synced, not from a live query to Meta: calling it in a loop does not give you fresher information. To diagnose a channel in detail —which flow handles each line, which Met answers— use GET /channels/{channelId}/config.