events
enabled
description
cURL
curl --request PATCH \ --url https://api.peepal.dev/v1/webhooks/endpoints/{endpoint_id} \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "events": [ "job.created" ], "enabled": true, "description": "<string>" } '
{ "id": "<string>", "url": "<string>", "events": [ "job.created" ], "enabled": true, "description": "<string>", "created_at": "2023-11-07T05:31:56Z" }
curl -X PATCH "https://api.peepal.dev/v1/webhooks/endpoints/wh_01ARZ3NDEKTSV4RRFFQ69G5FAV" \ -H "Content-Type: application/json" \ -H "x-api-key: YOUR_API_KEY" \ -d '{ "events": ["job.completed", "job.failed", "job.started"], "enabled": true }'
{ "id": "wh_01ARZ3NDEKTSV4RRFFQ69G5FAV", "url": "https://your-app.com/webhooks/peepal", "events": ["job.completed", "job.failed", "job.started"], "enabled": true, "description": "Production webhook endpoint", "created_at": "2025-12-31T10:00:00Z" }
job.created
job.started
job.progress
job.completed
job.failed
job.canceled
Webhook endpoint updated