API · Webhooks
Update Webhook
Update a webhook (requires full access).
PATCH
/webhooks/{webhook_id}Full accessRequest parameters
| Parameter | Type | Description |
|---|---|---|
webhook_idpath · required | string | The Webhook ID. |
endpointbody · optional | string | Public HTTPS URL that receives webhook events; private hosts are not allowed. |
eventsbody · optional | (string)[]At least 1 item | Array of event types to subscribe to. |
statusbody · optional | "enabled" | "disabled" | The status of the webhook. |
Request example
Set OPENSEND_BASE_URL=https://api.example.com and OPENSEND_API_KEY=os_replace_me on your server.
bash
curl -X PATCH "$OPENSEND_BASE_URL/webhooks/YOUR_webhook_id" \
-H "Authorization: Bearer $OPENSEND_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"status":"disabled"}'Response
200 · application/json. Example IDs stand for IDs returned by your installation.
json
{
"object": "webhook",
"id": "479e3145-dd38-476b-932c-529ceb705947"
}Behavior and errors
Set status to enabled or disabled. Re-enable a failing endpoint after correcting its receiver. See retries and replays.
Use a full-access credential. Unknown or foreign resources return 404. See authentication, errors, rate limits, and pagination.