What Are Webhooks?
Instead of polling for prediction results, you can provide awebhook_url when creating a prediction. each::labs will POST the result to your URL when the prediction completes.
Currently, webhooks are only supported for Workflows V2. Support for other services is being expanded.
How It Works
Provide a webhook URL
Include
webhook_url (and optionally webhook_secret) when creating a prediction.Setting Up Webhooks
Retry Behavior
Failed webhook deliveries are automatically retried with exponential backoff. You can track delivery attempts using the Get Webhook endpoint.Delivery Attempt Statuses
| Status | Description |
|---|---|
PENDING | Delivery is queued |
SUCCESS | Delivered successfully (2xx response) |
FAILED | Delivery failed (timeout, non-2xx, or connection error) |
Webhook Endpoints
| Method | Path | Description |
|---|---|---|
GET | /v1/webhooks | List all webhooks |
GET | /v1/webhooks/{execution_id} | Get webhook details with delivery attempts |