Skip to content

List Calls

Required scope: correspondence:read

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.

Generated Reference
POST /public-api/publicapi.v1.Correspondence/ListCalls

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.

Request ListCallsRequest
Response ListCallsResponse

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.