Create Webhook
Create a new webhook for the user's organization.
Request body
Example request
{
"channels": [
{
"channel": "slack",
"configs": {
"bot_token": "xoxb-...",
"channel_id": "C0123456789",
"workspace_id": "T0123456789"
}
}
],
"created_at": "2025-01-01T00:00:00Z",
"description": "Slack notifications for object lifecycle",
"event_types": [
"object.created",
"object.updated",
"object.deleted"
],
"is_active": true,
"updated_at": "2025-01-01T00:00:00Z",
"webhook_id": "wh_abc123def4",
"webhook_name": "Engineering Slack Alerts"
}Response
Successful Response
Example response
{
"channels": [
{
"channel": "slack",
"configs": {
"bot_token": "xoxb-...",
"channel_id": "C0123456789",
"workspace_id": "T0123456789"
}
}
],
"created_at": "2025-01-01T00:00:00Z",
"description": "Slack notifications for object lifecycle",
"event_types": [
"object.created",
"object.updated",
"object.deleted"
],
"is_active": true,
"updated_at": "2025-01-01T00:00:00Z",
"webhook_id": "wh_abc123def4",
"webhook_name": "Engineering Slack Alerts"
}Changes
Changed in 3 of the 32 revisions of this API.67
- ●
added the new
collection.documents.batch_completedenum value to theevent_types/items/response property for the response status201response-property-enum-value-added
- ○
added the new
collection.documents.batch_completedenum value to the request propertyevent_types/items/request-property-enum-value-added
- ●
- ○
the endpoint scheme security
BearerAuthwas added to the APIapi-security-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
added the new
document.createdenum value to theevent_types/items/response property for the response status201response-property-enum-value-added
- ●
added the new
document.deletedenum value to theevent_types/items/response property for the response status201response-property-enum-value-added
- ●
added the new
document.updatedenum value to theevent_types/items/response property for the response status201response-property-enum-value-added
- ●
added the new
documents.deleted.batchenum value to theevent_types/items/response property for the response status201response-property-enum-value-added
- ●
added the new
documents.updated.batchenum value to theevent_types/items/response property for the response status201response-property-enum-value-added
- ○
added the new
document.createdenum value to the request propertyevent_types/items/request-property-enum-value-added
- ○
added the new
document.deletedenum value to the request propertyevent_types/items/request-property-enum-value-added
- ○
added the new
document.updatedenum value to the request propertyevent_types/items/request-property-enum-value-added
- ○
added the new
documents.deleted.batchenum value to the request propertyevent_types/items/request-property-enum-value-added
- ○
added the new
documents.updated.batchenum value to the request propertyevent_types/items/request-property-enum-value-added
- ●