Skip to main content
GET
Get calls

Авторизации

Authorization
string
header
обязательно

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Заголовки

X-Tenant-Id
integer

Компания, в контексте которой выполняется запрос — её id из GET /v1/tenant/. Пользователь должен состоять в этой компании: чужой id доступа к данным не даёт. Без заголовка компания определяется по домену запроса.

Параметры запроса

end_at
string<date-time>

End of the period. A date (YYYY-MM-DD) or a timestamp. Defaults to the first of the next month.

page
integer

A page number within the paginated result set.

pageSize
integer

Number of results to return per page.

phone
string

Outside number to filter the calls by.

start_at
string<date-time>

Start of the period, inclusive. A date (YYYY-MM-DD) or a timestamp. Defaults to the first of the current month.

status
string[]

Call outcomes to keep, repeated once per value: ?status=ANSWERED&status=NO ANSWER.

Ответ

200 - application/json
count
integer
обязательно
Пример:

123

results
object[]
обязательно
next
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=2"