Skip to main content
When a call session ends, Agni dispatches a call.completed webhook event to any URLs configured in your agent’s Webhook Settings. This delivers the full call record including transcripts, AI analysis, and metadata.
Configure webhook URLs in the agent builder’s Webhook Settings panel, or via the Agent API webhook_urls field.

Event Details


Payload Structure

string
Event type identifier. Always "call.completed" for this webhook.
string
UUID of the organization that owns this call.
object
Full call session data.

Example Payload


Handling Webhooks

Your endpoint must return a 200 HTTP status code to acknowledge receipt. If Agni doesn’t receive a 200, it will retry the webhook.
Always check that the org_id in the payload matches your organization to prevent processing webhooks from other sources.
Return 200 immediately and process the data in a background job. Don’t make the webhook wait for your database writes or API calls.
Use call_session_id as a unique key to deduplicate webhook deliveries in case of retries.