POST /public-api/publicapi.v1.Correspondence/ListCalls
Lists phone calls newest first, from every calling integration (LeadDesk,
Adversus and any later one) and calls added through
Add Correspondence Message
with channel phone. This is read-only.
{
"source": "adversus",
"occurredFrom": 1793750400,
"pageSize": 100
}
Every filter is optional: source is the integration type (leaddesk,
adversus), integrationId one integration (find its ID with
List Integrations, since a workspace can
have several of one kind), customerId one customer, and
occurredFrom / occurredTo a window on the call’s start, as unix seconds
(occurredTo is exclusive). pageSize is 1 to 100 and defaults to 50. When
nextCursor is set, send it back as cursor with the same filters for the
next page.
A call lists the customers it reached that the actor can see in customerIds.
Without full customer access, only calls that reached a customer whose View
shows correspondence are returned. outcome is the contact result the call
was recorded with. durationSeconds, endedAt, the agent, campaign,
endedReason and comment are filled when the calling system reports them;
redacted calls (redacted: true) withhold them. The recording itself is not
returned; hasRecording says whether HeyX stored one.
Lists phone calls from every calling integration (LeadDesk, Adversus and any later one), newest first, with a continuation cursor. Only calls to customers whose View shows correspondence are returned, unless the actor has full customer access. Read-only.
RequestListCallsRequest
ResponseListCallsResponse
ListCallsRequest
Field
Type
Description
source
string
Integration type that carried the call, for example "leaddesk" or "adversus". Empty returns calls from every source.
integration_id
string
Only calls from this integration.
customer_id
string
Only calls that reached this customer.
occurred_from
optional int64
Only calls that started at or after this time, as unix seconds.
occurred_to
optional int64
Only calls that started before this time, as unix seconds.
page_size
int32
Calls per page, 1 to 100. Defaults to 50.
cursor
string
next_cursor from the previous page; the other filters must stay the same.
ListCallsResponse
Field
Type
Description
calls
repeated Call
next_cursor
string
Pass as cursor to read the next page. Empty on the last page.
Related Types
Call
Field
Type
Description
id
string
Call ID; the same ID as the call's correspondence message.
source
string
Integration type that carried the call, for example "leaddesk" or "adversus". Empty for calls added through the API without an integration.
integration_id
string
Integration that carried the call.
integration_display_name
string
Human-readable name of that integration.
external_id
string
The call's ID in the calling system.
direction
string
"inbound" or "outbound".
phone_number
string
The other party's number in E.164 format.
occurred_at
int64
Time the call started as unix seconds.
ended_at
optional int64
Time the call ended as unix seconds, when known.
duration_seconds
int64
Talk time in seconds, when known.
agent_name
string
The agent who made or took the call.
agent_id
string
The agent's ID in the calling system, when it reports one.
campaign_id
string
Campaign the call belongs to in the calling system.
campaign_name
string
ended_reason
string
Why the call ended or its result as the calling system names it.
comment
string
The agent's note on the call, when the calling system has one.
has_recording
bool
True when the call recording is stored in HeyX.
outcome
CallOutcome
The contact result this call was recorded with, when it has one.
customer_ids
repeated string
Customers the call reached that the actor can see.
redacted
bool
True when the call details are redacted and withheld.