Skip to main content
GET
Get conversations report

Authorizations

Authorization
string
header
required

API token in the sk_live_… format.

Query Parameters

page
integer
default:1

Page number, starting at 1. An invalid value is treated as 1.

Required range: x >= 1
perPage
integer
default:20

Number of items per page. The maximum depends on the environment (default 100).

Required range: 1 <= x <= 100
date_start
string
required

Start of the period, in the company time zone: YYYY-MM-DD or YYYY-MM-DD HH:mm:ss. With only the date, it starts at 00:00:00.

date_finish
string
required

End of the period, in the same format. With only the date, it runs until 23:59:59 of that day.

dateType
enum<string>
default:updated

updated considers the protocol's closing and last update dates; the creation date does not count (a protocol created in the period that only had activity after it is left out). created considers only the creation date. active brings the protocols active in the period: opened in it, closed in it or still open from before, the same basis as the dashboard. With active, queue and agent also follow the dashboard (see queues and users).

Available options:
updated,
created,
active
days
integer

Alternative to the period: the last N days.

status
enum<string>

Protocol status. A value outside the list does not filter.

Available options:
open_noservice,
inservice_automation,
inservice_waiting,
inservice_attending,
inservice_any,
closed,
open_any,
closed_bot,
closed_api,
closed_human,
closed_system
users
string

Agent ids (the id from GET /users), separated by commas. An agent that is not from your company returns 404 (ERR_API_USER_NOT_FOUND). With dateType=active, the protocol's agent applies, as in the dashboard; in the inservice_* statuses, the conversation's current agent.

queues
string

Queue ids, separated by commas. An id that is not from your company returns 422 (ERR_API_INVALID_REFERENCE). With dateType=active, the protocol's queue applies, as in the dashboard; in the inservice_* statuses, the conversation's current queue.

channels
string

Channel ids, separated by commas. An id that is not from your company returns 422 (ERR_API_INVALID_REFERENCE).

tags
string

Tag ids, separated by commas. An id that is not from your company returns 422 (ERR_API_INVALID_REFERENCE).

wrapupTypes
string

Wrap-up ids, separated by commas. An id that is not from your company returns 422 (ERR_API_INVALID_REFERENCE).

contactSearchParams
string

Search by contact.

protocol
string

Ticket protocol number.

conversationType
enum<string>

Conversation type: where the protocol was created from (inbound, outbound, campaign, API, automation or scheduled). How the conversation started:

Available options:
incoming,
outcoming,
campaign,
outcoming_api,
outcoming_automation,
outcoming_schedule
campaignSlug
string

Part of the campaign slug: returns the protocols whose campaignslug contains the text, ignoring upper and lower case. _ and % match the character itself. Up to 80 characters; longer text, or the parameter sent more than once, returns 422 (ERR_API_VALIDATION).

Maximum string length: 80

Response

OK

data
object[]
meta
object
Example: