Creating a Webhook
Event Types
Webhook Payload
Signature Verification
All webhooks are signed with HMAC-SHA256. Always verify signatures to ensure requests are from ComfyUI Cloud.Headers
Python Verification
Parse and Verify Together
Manual Verification
The signature is computed as:Managing Webhooks
List Webhooks
Rotate Secret
If your secret is compromised:Delete Webhook
Retry Policy
Failed deliveries are retried with exponential backoff:
Webhooks are considered failed if:
- Your server returns a non-2xx status code
- Connection timeout (30 seconds)
- DNS resolution fails
Best Practices
Always verify signatures
Always verify signatures
Never trust webhook payloads without verifying the signature. This prevents attackers from spoofing events.
Respond quickly
Respond quickly
Return a 2xx response within 30 seconds. Do heavy processing asynchronously after acknowledging receipt.
Handle duplicates
Handle duplicates
Use
delivery_id to deduplicate. Retries may cause the same event to be delivered multiple times.Use HTTPS
Use HTTPS
Always use HTTPS endpoints. HTTP webhooks are rejected in production.