List channels

SDK platic.channels.list()

List workspace channels. Each includes its responding agent and health, which indicates whether it works or what it needs.

Example

await platic.channels.list();

Query parameters

ParameterTypeDescriptionRequired
workspacestringWorkspace ID. Required if your credential covers several workspaces (list workspaces); without it the answer is 400If the credential has several

Response

{
  "status": "success",
  "data": [
    {
      "id": "759211583950552",
      "prefixedChannelId": "wb-759211583950552",
      "platform": "whatsapp",
      "channelType": "whatsapp_business",
      "isConnected": true,
      "status": "CONNECTED",
      "defaultAgentId": "tVKljCHCNiebQdasHeit",
      "name": "Acme Store",
      "displayPhoneNumber": "+52 1 55 1234 5678",
      "phoneNumber": "5215512345678",
      "businessId": "2555143851162952",
      "wabaId": "1630221868195156",
      "kind": "messaging",
      "commentAutoReply": null,
      "creationDate": "2026-05-28T22:58:46.587Z",
      "lastUpdate": "2026-11-10T18:00:16.911Z",
      "health": {
        "state": "ok",
        "reason": null,
        "since": "2026-05-28T22:58:46.587Z"
      }
    },
    {
      "id": "104857362918475",
      "prefixedChannelId": "fb-104857362918475",
      "platform": "messenger",
      "channelType": "messenger",
      "isConnected": true,
      "status": "CONNECTED",
      "defaultAgentId": null,
      "name": "Acme Store",
      "displayPhoneNumber": null,
      "phoneNumber": null,
      "businessId": null,
      "wabaId": null,
      "kind": "messaging",
      "commentAutoReply": null,
      "creationDate": "2026-09-02T15:20:11.004Z",
      "lastUpdate": "2026-11-10T16:05:00.000Z",
      "health": {
        "state": "needs_reconnection",
        "reason": "asset_access_revoked",
        "since": "2026-11-10T16:05:00.000Z"
      }
    }
  ]
}

data is the list of the workspace's channels, not paginated. Channels you removed from the workspace no longer appear.

Channel fields

FieldTypeDescription
idstringChannel id
prefixedChannelIdstring | nullThe prefixed id that messages use as channelId: wb- WhatsApp, fb- Messenger, ig- Instagram, fbc- Facebook comments, igc- Instagram comments, em- mailbox, wc- web chat
platformstring | nullWhat the channel is: whatsapp, messenger, instagram, facebook_comments, instagram_comments, webchat, or email. Every mailbox is email, whether it is on your domain, Gmail, or Outlook. New values may appear: show them as they come
channelTypestring | nullSpecific channel type, such as whatsapp_business or email_mailbox
isConnectedboolean | nullWhether the channel is connected
statusstring | nullThe status the channel reports, as Platica stores it (for example CONNECTED). To know whether it works, use health
defaultAgentIdstring | nullThe agent that answers what arrives on the channel. null if none
namestring | nullChannel name
displayPhoneNumberstring | nullThe number, human-readable (WhatsApp)
phoneNumberstring | nullThe number, without + (WhatsApp)
businessIdstring | nullMeta business portfolio id
wabaIdstring | nullWhatsApp Business Account id
kindstringmessaging or comments (Facebook or Instagram comments)
commentAutoReplyobject | nullComment channels only: enabled (the agent replies), configured (a configuration is published), and mode (public_reply, dm_redirect, both, or dm_only). null on messaging channels. Configured in Platica
creationDatestring | nullWhen it was connected, in ISO 8601
lastUpdatestring | nullLast change, in ISO 8601
healthobjectWhether it works and what it needs. See health

health

FieldTypeDescription
statestringok, needs_reconnection, action_required, paused, or disconnected
reasonstring | nullThe reason, as a stable code. null only when state is ok
sincestring | nullSince when, in ISO 8601, as far as Platica knows

Platica computes health from what it already knows about the channel. Reading it does not call Meta, Google, or Microsoft.

statereasonWhat happensWhat to do
oknullIt worksNothing
needs_reconnectionasset_access_revokedAccess to the page or account was lost; for example, someone removed the permission in MetaRequest another connection of the same type
needs_reconnectiontoken_invalidMeta rejected the stored permission when sending a message; for example, because the password changed or access was removedRequest another connection of the same type
needs_reconnectionauthorization_pendingThe authorization was not completedRequest another connection of the same type
needs_reconnectionmailbox_reconnect_requiredGmail or Outlook: the mailbox lost its authorizationReconnect it in Platica, in Integrations
needs_reconnectionpermissions_errorWhatsApp: the number could not be registered for lack of permissionsRequest another connection of the same type
action_requiredwebhook_not_subscribedPlatica is not receiving the channel's messagesRequest another connection of the same type
action_requiredaccount_disabledWhatsApp: Meta disabled the WhatsApp Business accountCheck the reason and appeal in your WhatsApp Business account in Meta
action_requiredaccount_disable_scheduledWhatsApp: Meta announced it will disable the accountCheck the notice in your WhatsApp Business account in Meta before the date
action_requiredpayment_requiredWhatsApp: Meta rejects messages because the account has no active payment method or creditCheck the account in Platica, in Integrations → WhatsApp
action_requiredmessaging_blockedWhatsApp: Meta blocked sending from the numberCheck it in your WhatsApp Business account in Meta
action_requiredcode_verification_pendingWhatsApp: the number still has to be verified with the codeFinish it in Platica, on the number's screen
action_requiredtwo_step_pin_requiredWhatsApp: the number has two-step verification and the PIN is missingFinish it in Platica, on the number's screen
action_requiredregistration_cooling_downWhatsApp: Meta asks to wait before retrying the registrationWait and try again in Platica
action_requiredregistration_pendingWhatsApp: the number has not finished registeringFinish it in Platica, on the number's screen
action_requiredwebchat_not_publishedWeb chat: it has never been publishedPublish it
pausedmailbox_pausedGmail or Outlook: the mailbox is paused. It also ends up this way when you disconnect itReconnect it in Platica, in Integrations
pausedwebchat_turned_offWeb chat: paused because config.enabled is falseSend config.enabled: true with update a web chat and publish it
disconnecteddisconnectedThe channel is disconnected. On a web chat, you turned it offRequest another connection of the same type. A web chat is turned on by publishing it

New reasons may appear. If you do not know a reason, show it as it comes and go by state.

Errors

Statusdetails.codeWhen it happens
400INVALID_REQUESTYour credential covers several workspaces and you did not send ?workspace=, or you sent one it does not cover. details.available lists the ones you can use
401UNAUTHENTICATEDThe credential is missing or invalid
403FORBIDDENThe credential does not have the Integrations module (Missing integrations permission)
500INTERNAL_ERRORThe channels could not be read. Try again
{
  "code": 400,
  "error": "Bad Request - The request has validation errors",
  "details": {
    "code": "INVALID_REQUEST",
    "message": "Must specify a valid workspace (multi-workspace API key)",
    "available": ["ws_123", "ws_456"]
  }
}

The general error format is in Errors.

Notes