Calls
Calls
Caller number resolved
call.caller_resolvedFires when `from_number` of an inbound personal WhatsApp call changes from `…@lid` to the real phone number. Sent separately for each such call of that caller in the company, including finished ones, and may arrive before or after other events of the call. The status in the event is the current one. No event is sent if the number was already known when the call was created, or if the contact is hidden from the working inbox.
HTTP request
AISAR sends a signed POST request to your webhook_url:
http
POST {webhook_url}
Content-Type: application/json
X-AISAR-Signature: sha256=...
{
"event": "call.caller_resolved",
"event_id": "evt_01JXXXXXXXXXXXXXXXXXXXXX",
"timestamp": "2026-06-06T12:03:10.000000Z",
"company_id": 1,
"data": {
"call_id": 123,
"direction": "inbound",
"status": "missed",
"from_number": "+12025550187",
"previous_from_number": "12345678@lid",
"to_number": "+12025550100",
"contact_id": 42,
"conversation_id": 100,
"channel_id": 5,
"external_call_id": "wacall_abc123",
"duration_sec": null,
"started_at": "2026-06-06T12:00:00+00:00",
"answered_at": null,
"ended_at": "2026-06-06T12:00:30+00:00"
}
}The X-AISAR-Signature header carries an HMAC-SHA256 signature of the request body — use it to verify the request came from AISAR.
Example payload
json
{
"event": "call.caller_resolved",
"event_id": "evt_01JXXXXXXXXXXXXXXXXXXXXX",
"timestamp": "2026-06-06T12:03:10.000000Z",
"company_id": 1,
"data": {
"call_id": 123,
"direction": "inbound",
"status": "missed",
"from_number": "+12025550187",
"previous_from_number": "12345678@lid",
"to_number": "+12025550100",
"contact_id": 42,
"conversation_id": 100,
"channel_id": 5,
"external_call_id": "wacall_abc123",
"duration_sec": null,
"started_at": "2026-06-06T12:00:00+00:00",
"answered_at": null,
"ended_at": "2026-06-06T12:00:30+00:00"
}
}Payload fields
| Field | Type | Description |
|---|---|---|
call_id | integer | Internal call ID (stable across all lifecycle events of this call) |
from_number | string | The caller's real phone number |
previous_from_number | string | The previous `from_number`, an internal WhatsApp identifier |
contact_id | integer|null | Contact ID |
external_call_id | string | WhatsApp call ID |