Webhooks
Update a webhook endpoint
Changes any of url, events and description (null clears it), and turns deliveries off and on with disabled. {"disabled": false} turns back on an endpoint Leap disabled after 72 hours of failures, and clears disabled_reason. Fields you leave out stay as they are.
Needs an API key with the generations:write scope.
PATCH
https://api.tryleap.ai
/
v1
/
webhook_endpoints
/
{id}
Update a webhook endpoint
curl --request PATCH \
--url https://api.tryleap.ai/v1/webhook_endpoints/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"url": "<string>",
"events": [],
"description": "<string>",
"disabled": true
}
'const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', events: [], description: '<string>', disabled: true})
};
fetch('https://api.tryleap.ai/v1/webhook_endpoints/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tryleap.ai/v1/webhook_endpoints/{id}"
payload = {
"url": "<string>",
"events": [],
"description": "<string>",
"disabled": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "we_5Tq8Lm2Xv9Kr4Wn7Bc1Yd3Hp",
"object": "webhook_endpoint",
"url": "https://example.com/webhooks/leap",
"description": "Production renders",
"events": [
"generation.succeeded",
"generation.failed"
],
"disabled": false,
"disabled_reason": null,
"created_at": "2026-10-04T18:20:03.441Z",
"updated_at": "2026-10-04T18:20:03.441Z"
}
Authorizations
ApiKeyBearer
Your workspace API key, leap_.... Create one at https://app.tryleap.ai/go/api, and keep it on your server.
Body
application/json
Response
The endpoint.
A URL your workspace's events are POSTed to.
When it was created.
Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$When it last changed.
Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$⌘I
Update a webhook endpoint
curl --request PATCH \
--url https://api.tryleap.ai/v1/webhook_endpoints/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"url": "<string>",
"events": [],
"description": "<string>",
"disabled": true
}
'const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', events: [], description: '<string>', disabled: true})
};
fetch('https://api.tryleap.ai/v1/webhook_endpoints/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tryleap.ai/v1/webhook_endpoints/{id}"
payload = {
"url": "<string>",
"events": [],
"description": "<string>",
"disabled": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "we_5Tq8Lm2Xv9Kr4Wn7Bc1Yd3Hp",
"object": "webhook_endpoint",
"url": "https://example.com/webhooks/leap",
"description": "Production renders",
"events": [
"generation.succeeded",
"generation.failed"
],
"disabled": false,
"disabled_reason": null,
"created_at": "2026-10-04T18:20:03.441Z",
"updated_at": "2026-10-04T18:20:03.441Z"
}