GET
/
whatsapp_configs
/
{whatsapp_config_id}
/
whatsapp_webhooks
List WhatsApp webhooks
curl --request GET \
  --url https://app.kapso.ai/api/v1/whatsapp_configs/{whatsapp_config_id}/whatsapp_webhooks \
  --header 'X-API-Key: <api-key>'
{
  "data": [
    {
      "id": "webhook-123abc",
      "url": "https://example.com/webhook",
      "secret_key": "your-secret-key",
      "events": [
        "messages",
        "status_updates",
        "templates"
      ],
      "active": true,
      "headers": {
        "X-Custom-Header": "custom-value"
      },
      "retry_config": {
        "max_attempts": 3,
        "backoff_seconds": 60
      },
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "meta": {
    "page": 123,
    "per_page": 123,
    "total_pages": 123,
    "total_count": 123
  }
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Path Parameters

whatsapp_config_id
string
required

Query Parameters

page
integer
default:1
Required range: x >= 1
per_page
integer
default:20
Required range: 1 <= x <= 100
q[url_cont]
string

Filter webhooks by URL (contains)

q[active_eq]
boolean

Filter webhooks by active status

Response

200
application/json

A list of WhatsApp webhooks

The response is of type object.