Skip to main content

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:

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
Example of Problematic Configuration:
Result: Only https://domain1.com/webhooks/calls will receive call_completed events. The second URL will throw error while subscribing. Solutions:
  1. Use a single webhook URL with routing:
  2. Check existing subscriptions before adding new ones:
  3. 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
Solution: