DocsAPI referenceWebhooks
Update a webhook endpoint
Changes the URL, enables or disables the endpoint. Deliveries still pending go to the new URL.
PATCH /v1/webhook-endpoints/{id}
Needs an API key: Authorization: Bearer $VIDEXO_API_KEY.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string, up to 64 characters | The endpoint id. |
Body UpdateWebhookEndpointRequest
| Name | Type | Description |
|---|---|---|
url | string, URL, up to 2,048 characters | A public https URL on the default port. |
enabled | boolean |
Request
bash
curl -X PATCH "$VIDEXO_API_URL/v1/webhook-endpoints/we_4n8c2kq0x7m1v5z3b9r6t0wa" \
-H "Authorization: Bearer $VIDEXO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"enabled": false
}'Copy failed. The text is selected; copy it with your keyboard.
JavaScript
const response = await fetch(`${process.env.VIDEXO_API_URL}/v1/webhook-endpoints/we_4n8c2kq0x7m1v5z3b9r6t0wa`, {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.VIDEXO_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"enabled": false
}),
});
const endpoint = await response.json();Copy failed. The text is selected; copy it with your keyboard.
Response
200 JSON
{
"id": "we_4n8c2kq0x7m1v5z3b9r6t0wa",
"url": "https://example.com/hooks/videxo",
"enabled": false,
"created_at": "2026-11-04T09:00:00.000Z",
"updated_at": "2026-11-04T15:00:00.000Z"
}Copy failed. The text is selected; copy it with your keyboard.
Responses
| Status | Body | When |
|---|---|---|
| 200 | WebhookEndpoint | The endpoint. |
| 400 | Problem | invalid_request |
| 401 | Problem | authentication_failed (missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
| 403 | Problem | permission_denied (token_scope): a client token cannot call this route |
| 404 | Problem | not_found (webhook_endpoint) |
| 429 | Problem | rate_limited, with Retry-After in seconds |