Retry Logic
Timeout Behavior
- Timeout: 30 seconds maximum
- Retries: Up to 3 attempts
- Total attempts: 4 (initial + 3 retries)
Retry Schedule
When your webhook endpoint fails to respond or returns a non-200 status code:Attempt | Timing | Action |
---|---|---|
1st (Initial) | Immediate | Send webhook |
2nd (Retry 1) | 10 seconds later | First retry |
3rd (Retry 2) | 1 minute later | Second retry |
4th (Retry 3) | 2 minutes later | Final retry |
After All Retries Fail
- Webhook delivery stops permanently for that event
- Event data is still available via API calls
- No notification is sent about the failure
- Subsequent events will still be attempted
Error Responses
Success Criteria
Your endpoint must return:- HTTP Status: 200 OK
- Response Time: Under 30 seconds
- Content: Any valid JSON (optional)
Failure Conditions
Webhooks will be retried for:- HTTP status codes other than 200
- Network timeouts (>30 seconds)
- Connection refused/unreachable endpoint
- Invalid SSL certificates
- DNS resolution failures
Common Configuration Issues
Duplicate Event Subscriptions
Issue: Attempting to subscribe to the same event type multiple times for the same agent with different URLs. Error Behavior:- The new subscription will overwrite the previous one
- Only the latest webhook URL will receive events
- No error message is returned during setup
https://domain1.com/webhooks/calls
will receive call_completed
events. The second URL will throw error while subscribing.
Solutions:
-
Use a single webhook URL with routing:
-
Check existing subscriptions before adding new ones:
-
Use idempotent subscription management:
Agent ID Validation Errors
Issue: Using incorrect or non-existent agent IDs in subscription requests. Symptoms:- HTTP 404 errors when setting up subscriptions
- Events not being triggered despite correct webhook setup