whatsAppTriggerCatalog
Requires permission settings:integration:read.
Lists the WhatsApp triggers that can be switched on, such as the events that send a message. 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:
- GraphQL
- cURL
query WhatsAppTriggerCatalog {
whatsAppTriggerCatalog {
category
description
key
label
purpose
referenceType
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query WhatsAppTriggerCatalog {\n whatsAppTriggerCatalog {\n category\n description\n key\n label\n purpose\n referenceType\n }\n}"
}
EOF
Response:
{
"data": {
"whatsAppTriggerCatalog": [
{
"category": "string",
"description": "string",
"key": "string",
"label": "string",
"purpose": "string",
"referenceType": "string"
}
]
}
}
whatsAppTriggerCatalog: [WhatsAppTriggerDefinitionGql!]!
Type
WhatsAppTriggerDefinitionGql object
A trigger from the catalog. It drives the settings page.