Skip to content
Chatwise
Skip to Content
Developer docs

List event types

GET /v1/webhook-event-types. Lists the events an endpoint can subscribe to and the channels each covers.

View as Markdown

GEThttps://api.chatwise.so/v1/webhook-event-types

Lists the events an endpoint can subscribe to and the channels each covers. Some are listed before they are sent: see events.

The API key needs the webhooks:read scope. See authentication and scopes.

Example

curl 'https://api.chatwise.so/v1/webhook-event-types' \
  -H "Authorization: Bearer $CHATWISE_API_KEY"

Response

200. The events.

{
  "data": [
    {
      "type": "message.received",
      "description": "A customer sent a message.",
      "channels": [
        "WHATSAPP",
        "INSTAGRAM",
        "MESSENGER",
        "WEBSITE_CHAT"
      ]
    },
    {
      "type": "message.sent",
      "description": "The workspace sent a message: from the dashboard, the mobile app, the API, MCP, a flow, Comment to DM, or the native WhatsApp Business or Instagram app.",
      "channels": [
        "WHATSAPP",
        "INSTAGRAM",
        "MESSENGER",
        "WEBSITE_CHAT"
      ]
    },
    {
      "type": "message.delivered",
      "description": "The channel reported an outgoing message was delivered.",
      "channels": [
        "WHATSAPP",
        "MESSENGER"
      ]
    },
    {
      "type": "message.read",
      "description": "The channel reported the customer read an outgoing message.",
      "channels": [
        "WHATSAPP",
        "INSTAGRAM",
        "MESSENGER"
      ]
    },
    {
      "type": "message.failed",
      "description": "The channel reported an outgoing message could not be delivered.",
      "channels": [
        "WHATSAPP"
      ]
    },
    {
      "type": "comment.received",
      "description": "Someone commented on a post of a connected Instagram account.",
      "channels": [
        "INSTAGRAM"
      ]
    }
  ]
}
FieldTypeDescription
data[].typestringThe event's name. One of message.received, message.sent, message.delivered, message.read, message.failed, comment.received.
data[].descriptionstringWhen it happens.
data[].channelsarray of stringsThe channels it covers. Each one of WHATSAPP, INSTAGRAM, MESSENGER, WEBSITE_CHAT.

Errors

StatusMessageWhat it means
401A valid Bearer API key is requiredThe Authorization header is missing or isn't Bearer <API key>.
401Invalid or revoked API keyThe key doesn't exist, was revoked, or has expired.
401Invalid API keyChatwise couldn't check the key. Try again.
403API key does not have the required scope: webhooks:readThe key lacks the route's scope. Create a key that has it.
429API key rate limit exceededWait the number of seconds in the Retry-After header.
500Internal server errorSomething failed in Chatwise. Retry reads with backoff.

The body of an error is described in errors.

On this page