whatsAppMessageLogs
Requires permission settings:integration:read.
Lists the organization's WhatsApp message log, newest first, across every provider so the history survives a provider switch. 25 entries by default. 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 WhatsAppMessageLogs {
whatsAppMessageLogs {
id
templateName
status
createdAt
error
provider
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query WhatsAppMessageLogs {\n whatsAppMessageLogs {\n id\n templateName\n status\n createdAt\n error\n provider\n }\n}"
}
EOF
Response:
{
"data": {
"whatsAppMessageLogs": [
{
"id": "id",
"templateName": "string",
"status": "string",
"createdAt": "2025-01-15T00:00:00Z",
"error": "string",
"provider": "string"
}
]
}
}
whatsAppMessageLogs(
filter: WhatsAppMessageLogFilterInput
): [WhatsAppMessageLogGql!]!
Arguments
whatsAppMessageLogs.filter ● WhatsAppMessageLogFilterInput input
Optional filter: how many entries to return.
Type
WhatsAppMessageLogGql object
One WhatsApp message in the log.