GET
/v1/webhooks
List Webhooks
Get all registered webhooks
List Webhooks
Retrieve all registered webhooks for your account.
Endpoint
GET /v1/webhooks
Request
Headers
| Header | Value |
|---|---|
| Authorization | Bearer {access_token} |
Example Request
curl -X GET https://api.apimw.com/v1/webhooks \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
Success Response (200 OK)
{
"success": true,
"data": {
"webhooks": [
{
"id": "whk_abc123xyz",
"url": "https://yourapp.com/webhooks/apimw",
"events": ["message.sent", "message.delivered"],
"active": true,
"created_at": "2024-01-15T10:30:00Z",
"last_triggered": "2024-01-15T14:22:00Z",
"stats": {
"total_sent": 1250,
"total_failed": 5,
"success_rate": 99.6
}
}
]
}
}
Managing Webhooks
Update Webhook
curl -X PUT https://api.apimw.com/v1/webhooks/whk_abc123xyz \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{"events": ["message.sent"]}'
Delete Webhook
curl -X DELETE https://api.apimw.com/v1/webhooks/whk_abc123xyz \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"