Overview
Webhooks send HTTP POST notifications when tasks complete, eliminating polling.Webhooks are optional. You can always use polling instead.
Setup
IncludecallBackUrl when creating a task:
Webhook Payload
Success
Failure
Webhook Handler Examples
Best Practices
- Always respond 200 immediately, process async
- Implement idempotency using
taskId(webhooks may be delivered multiple times) - Use HTTPS for webhook endpoints
- Implement fallback polling for critical tasks