Skip to main content
GET
https://api.trycase.ai/api/v1
/
webhooks
curl -X GET "https://api.trycase.ai/api/v1/webhooks" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "data": [
    {
      "id": "wh_abc123",
      "url": "https://yourapp.com/webhooks/case",
      "events": ["order.confirmed", "order.shipped", "order.delivered"],
      "active": true,
      "created_at": "2025-01-15T10:00:00Z"
    },
    {
      "id": "wh_def456",
      "url": "https://backup.yourapp.com/webhooks",
      "events": ["order.delivered"],
      "active": true,
      "created_at": "2025-01-10T08:00:00Z"
    }
  ]
}

List Webhooks

Retrieve all webhooks registered for your account.
curl -X GET "https://api.trycase.ai/api/v1/webhooks" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "data": [
    {
      "id": "wh_abc123",
      "url": "https://yourapp.com/webhooks/case",
      "events": ["order.confirmed", "order.shipped", "order.delivered"],
      "active": true,
      "created_at": "2025-01-15T10:00:00Z"
    },
    {
      "id": "wh_def456",
      "url": "https://backup.yourapp.com/webhooks",
      "events": ["order.delivered"],
      "active": true,
      "created_at": "2025-01-10T08:00:00Z"
    }
  ]
}