π₯ 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 9 days ago