webhook_url and webhook_secret in your call request to receive a call.completed event. Use a public HTTPS endpoint and a secret of at least 32 characters. Keep the secret on your server.
Thoughtly sends a JSON body with an event id, type, created_at, and data containing the call result. call.completed is sent for terminal statuses completed, no_answer, busy, canceled, and failed, including rejected or expired calls. For answered calls, delivery normally follows recording and post-call processing. If an artifact is unavailable or processing fails, it can be null; check Get a call for the latest result.
An unknown status means the carrier may have received the call but the outcome is not yet confirmed. It is not a completion event. Check the same call ID for updates; creating another call may dial the recipient twice. If no terminal carrier event arrives by the maximum duration plus the ring timeout and 15 minutes, the call is marked failed and its completion webhook is sent.
Verify a signature
Verify the signature using the raw request body, before parsing or changing it. The signature is the hexadecimal HMAC-SHA256 oftimestamp.event_id.raw_body, prefixed with v1=. Read the values from X-Thoughtly-Timestamp, X-Thoughtly-Event-Id, and X-Thoughtly-Signature.
2xx response within 10 seconds after accepting the event. Failed deliveries are retried up to 10 total attempts, with delays of approximately 1, 2, 4, 8, 16, 32, 60, 60, and 60 minutes. Deliveries are at least once, so store the event ID and make your processing idempotent. Redirects and private network addresses are not supported. The URL is checked at delivery; a private address can be accepted when creating the call but cannot receive the event and eventually exhausts retries.
For webhooks from existing agents and integrations, see Integration webhooks.