🥊 Webhooks
Webhooks allow external systems to be notified when certain events happen in your Vambe AI environment. You can use them to trigger workflows, sync data, update CRMs, log analytics, or automate alerts.
✅ Available Webhook Events
🔽 GET /api/webhooks/topics
– Get Available Webhook Topics
GET /api/webhooks/topics
– Get Available Webhook TopicsRetrieves a list of all possible webhook topics you can subscribe to.
Click to expand
🔹 Example Request
curl --request GET \
'https://api.vambe.me/api/webhooks/topics'
🔹 Response
[
"message.received",
"message.sent",
"ticket.opened",
"ticket.closed"
]
➕ Create & Manage Webhooks
🔽 POST /api/webhooks
– Create a New Webhook
POST /api/webhooks
– Create a New WebhookRegisters a new webhook URL for a specific topic.
Click to expand
🔹 Body Parameters
Name | Type | Required | Description |
---|---|---|---|
topic | string | ✅ | Webhook topic to listen to |
url | string | ✅ | The URL that will receive the webhook |
secret | string | ✅ | Secret key for signature validation |
🔹 Example Request
curl --request POST \
'https://api.vambe.me/api/webhooks' \
--header 'Content-Type: application/json' \
--data-raw '{
"topic": "message.received",
"url": "https://yourdomain.com/webhook-handler",
"secret": "yourSecretKey"
}'
🔹 Success Response
{
"status": "created",
"id": "webhook_123"
}
🔽 GET /api/webhooks
– Get All Webhooks
GET /api/webhooks
– Get All WebhooksReturns all webhooks registered for your account (including soft-deleted ones, if applicable).
Click to expand
curl --request GET \
'https://api.vambe.me/api/webhooks'
🔽 PUT /api/webhooks/{id}
– Update a Webhook
PUT /api/webhooks/{id}
– Update a WebhookModifies an existing webhook's properties.
Click to expand
🔹 Path Parameter
Name | Type | Required | Description |
---|---|---|---|
id | string | ✅ | ID of the webhook |
🔹 Body Parameters
{
"topic": "message.sent",
"url": "https://yourdomain.com/new-handler",
"secret": "updatedSecret",
"active": true
}
🔽 DELETE /api/webhooks/{id}
– Delete a Webhook
DELETE /api/webhooks/{id}
– Delete a WebhookSoft-deletes a webhook (can be restored later).
Click to expand
🔹 Example
curl --request DELETE \
'https://api.vambe.me/api/webhooks/webhook_123'
Response:
{
"status": "deleted"
}
📬 Retrieve Info
🔽 GET /api/webhooks/{id}
– Get a Webhook by ID
GET /api/webhooks/{id}
– Get a Webhook by IDClick to expand
curl --request GET \
'https://api.vambe.me/api/webhooks/webhook_123'
🔽 GET /api/webhooks/calls
– Get Webhook Call History
GET /api/webhooks/calls
– Get Webhook Call HistoryReturns a paginated list of webhook calls with payloads, status, and timestamps.
Click to expand
curl --request GET \
'https://api.vambe.me/api/webhooks/calls'
♻️ Recovery
🔽 POST /api/webhooks/{id}/restore
– Restore a Soft-Deleted Webhook
POST /api/webhooks/{id}/restore
– Restore a Soft-Deleted WebhookClick to expand
curl --request POST \
'https://api.vambe.me/api/webhooks/webhook_123/restore'
Updated 16 days ago