Create webhook
Changed onCreates a new webhook for a project. This endpoint requires the write:all scope. If the project cannot be found, a 404 error response is returned.
Request
- Base URL: https://api.liveblocks.io/v2
- URL: https://api.liveblocks.io/v2/management/projects/{projectId}/webhooks
- Auth: none declared
Path parameters
ID of the project
Request body
Example request
{
"url": "https://example.com/webhooks",
"subscribedEvents": [
"storageUpdated",
"userEntered"
],
"rateLimit": 100,
"storageUpdatedThrottleSeconds": 10,
"yDocUpdatedThrottleSeconds": 10
}Response
Success. Returns the created webhook.
Example response
{
"id": "wh_abc123",
"createdAt": "2024-09-03T12:34:56.000Z",
"updatedAt": "2024-09-03T12:34:56.000Z",
"url": "https://example.com/webhooks",
"disabled": false,
"subscribedEvents": [
"storageUpdated",
"userEntered"
],
"secret": {
"value": "whsec_abc123"
},
"storageUpdatedThrottleSeconds": 10,
"yDocUpdatedThrottleSeconds": 10
}Changes
- breaking
request body became required
- breaking
the
request property type changed fromnumbertointeger - breaking
the
request property type changed fromnumbertointeger - breaking
the
request property type changed fromnumbertointeger - breaking
removed the required property
from the response with the status - info
api operation id
post-management-webhooksremoved and replaced withcreate-management-webhook - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- info
endpoint added
- info