> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.chatbridge.mx/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.chatbridge.mx/_mcp/server.

# Call result

POST 

Chat Bridge notifies the final status of each originated call through an HTTP POST request (webhook).

To enable notifications you must provide the Voices team with the destination URL, which is configured in your App-Key. Optionally, you can define HTTP headers with constant values (for example, an authorization token) that will be sent with each webhook.

A `SENT` event is emitted when the call completes and includes the conversation duration, transcription, analysis results and collected data; a `FAILED` event is emitted when the call could not be initiated and includes the SIP termination code. Your endpoint must accept `application/json` and respond with a 2xx HTTP code; failed deliveries are retried automatically.

Reference: https://docs.chatbridge.mx/omia/webhooks/call-result-webhook

## Request

### Payload

- `message_id` (string, optional) — Unique identifier of the call generated when it is created.
- `status` (enum, optional) — Overall status of the call. `SENT` when the conversation finished (includes the duration); `FAILED` when the call initiation failed (includes the SIP termination code).
  - Allowed values: `SENT`, `FAILED`
- `phone_number` (string, optional)
- `agent` (string, optional) — Identifier of the agent that handled the call.
- `agent_name` (string, optional) — Name of the agent that handled the call.
- `operator` (string, optional)
- `is_mobile` (boolean, optional)
- `type` (string, optional, nullable) — Network type of the destination number according to the National Numbering Plan (for example `MOVIL` or `FIJO`).
- `sip_code` (integer, optional) — SIP code returned by the voice platform when finishing.
- `sip_description` (string, optional) — Human-readable description corresponding to the SIP code.
- `duration_minutes` (integer, optional) — Duration of the conversation in minutes, rounded up.
- `duration_seconds` (integer, optional) — Duration of the conversation in seconds.
- `dialed_at` (datetime, optional, nullable) — Timestamp when the call was answered by the destination.
- `failed_at` (datetime, optional, nullable) — Timestamp of the failure, when the call could not complete.
- `conversation_id` (string, optional, nullable) — Identifier of the conversation on the voice platform. `null` when the call never reached the provider.
- `variables` (map from string to string, optional, nullable) — Variables used to originate the call.
- `analysis` (list of CallWebhookEventAnalysisItems, optional, nullable) — Result of each evaluation criterion configured on the agent. Only present on `SENT` events, after the conversation was analyzed.
- `data_collection_results` (map from string to CallWebhookEventDataCollectionResults, optional, nullable) — Data collected during the conversation, keyed by variable. Only present on `SENT` events, after the conversation was analyzed.
- `transcription` (list of CallWebhookEventTranscriptionItems, optional, nullable) — Transcription of the conversation in chronological order. `null` when no conversation took place.

## Types

### CallWebhookEventAnalysisItems

- `id` (string, optional) — Identifier of the evaluation criterion.
- `name` (string, optional) — Name of the evaluation criterion.
- `result` (string, optional) — Outcome of the criterion (`success`, `failure` or `unknown`).

### CallWebhookEventDataCollectionResults

- `value` (any, optional) — Collected value, or `null` when it could not be determined.
- `rationale` (string, optional, nullable) — Reasoning behind the collected value.

### CallWebhookEventTranscriptionItems

- `role` (enum, optional)
  - Allowed values: `agent`, `user`
- `message` (string, optional)