GET /scripts/{script_id}/webhooks
Script event webhooks. Authentication: Scope:scripts.read
Path parameters: script_id
Response: Webhook[]
cURL
POST /scripts/{script_id}/webhooks
Creates a webhook (max. 5). The signing key (whsec_…) appears only in this response. Signature: X-DoglyTdc-Signature = sha256=HMAC_SHA256(key, “X-DoglyTdc-Timestamp.body”). Authentication: Scope:scripts.write
Up to 5 webhooks per script. The signing key
whsec_… appears only in this response.script_id
Body: { url (public https), events?: (repo.commit | functions.deploy | access.granted)[] }
Response: { webhook, secret }
cURL
PATCH /scripts/{script_id}/webhooks/{webhook_id}
Changes the URL, events, or enabled/disabled state. Authentication: Scope:scripts.write
Path parameters: script_id, webhook_id
Body: { url?, events?, active? }
Response: Webhook
cURL
DELETE /scripts/{script_id}/webhooks/{webhook_id}
Deletes the webhook. Authentication: Scope:scripts.write
Path parameters: script_id, webhook_id
Response: 204
cURL
POST /scripts/{script_id}/webhooks/{webhook_id}/test
Sends a “ping” event now. Authentication: Scope:scripts.write
Path parameters: script_id, webhook_id
Response: Delivery
cURL
GET /scripts/{script_id}/webhooks/{webhook_id}/deliveries
Latest 50 deliveries. Authentication: Scope:scripts.read
Path parameters: script_id, webhook_id
Response: Delivery[]
cURL

