On this page
Guides / Channel status

Channel status

Know if WhatsApp, Instagram, Messenger and email are connected, with which account and how healthy, before promising a message will go out.

Updated View .md

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

FieldWhat it means
connectedThe channel is connected in your workspace.
channel_idThe 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.
healthok, attention, disconnected or not_connected. It is the worst health among its active accounts.
reasonWhy it is not ok (below).
last_synced_atWhen Meteor last synced that account with the provider.

The reasons

reasonWhat to do
line_not_operationalThe WhatsApp number did not finish verifying or registering. Finish the setup from the panel.
quality_lowMeta rated the number's quality as red. Lower the volume of marketing templates.
authorization_expiringThe account's permission expires in less than 7 days. Reconnect it from the panel.
authorization_expiredThe permission expired: what comes in through that account no longer arrives. Reconnect it from the panel.
account_inactiveThe account is turned off in the panel; it does not count toward the channel's health.
no_accountsThe 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);
FieldWhat it means
statushealthy, degraded, unhealthy, not_connected or error. The worst among its components.
error, retry_afterIf 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.
timestampWhen the check was made.
checks.channelsstatus, reason and channels, the same as channels/status.
checks.accessstatus, 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.

CodeWhere it appearsWhat it meansWhat you can do
line_not_operationalQueryThe number didn't finish verifying or registering.Finish the setup.
quality_lowQuery and channel.health_updatedMeta rated the number's quality red.Review template volume and content.
authorization_expiringQueryThe permission expires in less than 7 days.Reconnect.
authorization_expiredQueryThe permission expired.Reconnect.
account_inactiveQueryThe account is turned off in the panel.Nothing, unless it shouldn't be.
no_accountsQueryThe channel is connected with no active account.Reconnect.
disconnected_manuallychannel.disconnectedDisconnected in the panel or through the API.Reconnect if it wasn't you.
account_deleted_by_providerchannel.disconnectedThe account was deleted at the provider.Tell the merchant.
account_offboarded_by_providerchannel.disconnectedThe provider removed the account from the integration.Reconnect.
account_disabled_by_providerchannel.disconnectedThe provider disabled the account.Tell the merchant; it usually takes an appeal to Meta.
permissions_revokedchannel.disconnectedThe merchant withdrew the permission.Reconnect.
linked_page_disconnectedchannel.disconnectedThe Page Instagram depended on was disconnected.Reconnect.
credentials_rejectedchannel.disconnectedThe provider rejected the credentials.Reconnect.
messaging_limit_loweredchannel.health_updatedMeta lowered the messaging limit.Review usage.
messaging_limit_raisedchannel.health_updatedMeta raised the limit.Nothing.
quality_recoveredchannel.health_updatedQuality recovered.Nothing.
account_restrictedchannel.health_updatedMeta restricted the account.Tell the merchant.
account_policy_violationchannel.health_updatedMeta recorded a policy violation.Review usage; if it's misuse, decide whether to block it.
account_sharing_removedchannel.health_updatedShared access to the account was removed.Review and reconnect.
account_reconnectedchannel.health_updatedThe account reconnected.Nothing.
account_scheduled_for_disablechannel.health_updatedMeta scheduled the account to be disabled.Tell the merchant right away.
account_reinstatedchannel.health_updatedMeta 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.