Skip to main content

whatsAppChannels

Requires permission settings:integration:read.

Lists the WhatsApp channels on the provider account, for the channel picker. A provider that does not use channels answers that it has none. Requires permission to read integrations.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query WhatsAppChannels {
whatsAppChannels {
detail
ok
channels {
id
name
source
}
}
}

Response:

{
"data": {
"whatsAppChannels": {
"detail": "string",
"ok": true,
"channels": [
{
"id": "string",
"name": "string",
"source": "string"
}
]
}
}
}
whatsAppChannels(
provider: WhatsAppProvider
): WhatsAppChannelsResultGql!

Arguments​

whatsAppChannels.provider ● WhatsAppProvider enum​

The WhatsApp provider to use. Omit it to use the organization's enabled provider, else its most recently edited one.

Type​

WhatsAppChannelsResultGql object​

The channels fetched from the provider.