List WhatsApp messages
Returns a paginated list of the WhatsApp messages your account sent and received, each with its direction, delivery status, and phone numbers, and the content of the messages customers sent.
Messages that customers send to your senders appear here alongside the messages you sent.
Behavior: Messages are ordered from newest to oldest. If direction isn’t specified, the response includes both directions, and when several filters are specified, a message must match all of them. Returns 400 when direction, from, or to isn’t valid.
Requires: Your account must have WhatsApp enabled, must have a subscription plan, and must not be blocked or suspended.
Authorizations
Wavix API key. Pass as Authorization: Bearer <api_key>. Keys support per-resource scopes (none / read / write). See Restricted keys and scopes.
Query Parameters
Filters messages by delivery status. A filter matches that status only, so delivered doesn't include read messages. Inbound messages always have delivered status. Possible values:
sent— The message isn't delivered yet.delivered— The message was delivered to the recipient.read— The recipient opened the message. WhatsApp reports it only when the recipient has read receipts turned on.undelivered— The message was sent but not delivered.expired— The message expired before it was delivered.rejected— The message was permanently rejected before or by the provider.unknown— The provider hasn't reported a status.
sent, delivered, read, undelivered, expired, rejected, unknown