Skip to content

GetCallsRequestDto

← Call Center DTO

Filters for GET Api/Calls. Every field except pagination is optional — an absent field applies no condition.

The list unions two sources: calls, and the sessions an agent recorded without a call of their own. A filter on a column only calls have (queueIds, queueTypes, recallCreated, outcomeReason, webexCorrelationId) drops the session branch entirely, because a session cannot satisfy it.

This endpoint ignores pagination.sortBy: the union spans two id sequences, so rows are always ordered by their start time and only pagination.descending is honoured.

Backend-источник: features.callcenterservice/Features.CallCenterService/Nuget.CallCenterApiClient/Dto/Calls/Requests/GetCallsRequestDto.cs (features.callcenterservice).

Также определён в: integration.callcenternotification.

Поля

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
phoneNumbersstring[]даPrefix match against either number of a call, or the single number of a session. Numbers are OR-ed together. callingPhoneNumber and calledPhoneNumber are the per-side forms. An empty array is indistinguishable from an absent field in a query string, so it means "no restriction" and returns every call. To show nothing for a contact without a phone number, skip the call instead of sending an empty array.List<string>?
fromstring | nullнетStart of the window, inclusive, as a local calendar day (YYYY-MM-DD).DateTime?
tostring | nullнетEnd of the window, inclusive, as a local calendar day (YYYY-MM-DD).DateTime?
answeredboolean | nullнетWhether the other side was reached. Read from the agent's session when there is one, otherwise from what Webex reported.bool?
missedboolean | nullнетInverse of answered, in either direction. Kept for compatibility.bool?
categoryCallSessionCategoryDto | nullнетSingle category. categories is the multi-select form.
callDirectionCallDirectionDto | nullнетSingle direction. callDirections is the multi-select form.
agentIdsnumber[]нетMatches calls and sessions handled by any of the listed agents.
queueIdsnumber[]нетMatches calls routed through any of the listed queues. Sessions have no queue.
queueTypesQueueTypeDto[]нетMatches calls whose queue is of any of the listed types. Sessions have no queue. This replaces the singular QueueType parameter the portal used to send, which the backend never read.
callDirectionsCallDirectionDto[]нетMulti-select form of callDirection.
categoriesCallSessionCategoryDto[]нетMulti-select form of category.
sessionOutcomesSessionOutcomeDto[]нетHow the agent judged the conversation.
sessionResultsSessionResultDto[]нетWhat the agent recorded as the result of the conversation.
callingPhoneNumberstringнетPrefix match on the originating number. A session stores one number for both sides, so it matches that number.
calledPhoneNumberstringнетPrefix match on the dialled number. A session stores one number for both sides, so it matches that number.
externalEntityTypesCallSessionExternalEntityTypeDto[]нетKind of entity the session was linked to.
externalEntityIdnumber | nullнетId of the linked entity. Applies on its own, without externalEntityTypes.
recallCreatedboolean | nullнетWhether a recall was created off the call. Set only by the inbound recall worker, so it is always false on outbound calls. Sessions do not carry it.
durationSecondsPaginationRangeFilter<number>нетRange over the length of the conversation in seconds. Calls and sessions that never finished are excluded.
createdAtPaginationRangeFilter<string>нетISO 8601 range over the creation timestamp of the record, not over when the call started.
outcomeReasonstringнетSubstring match on the outcome reason Webex reported. Sessions do not carry it.
commentstringнетSubstring match on the comment the agent left on the session.
webexCorrelationIdstringнетExact match on the Webex correlation id, for tracing a single call. Sessions do not carry it.
paginationPaginationдаPagination

Пример

json
{
  "phoneNumbers": [],
  "from": "2026-05-05T08:00:00Z",
  "to": "2026-05-05T08:00:00Z",
  "answered": false,
  "missed": false,
  "category": "<callsessioncategorydto>",
  "callDirection": "<calldirectiondto>",
  "agentIds": [],
  "queueIds": [],
  "queueTypes": [],
  "callDirections": [],
  "categories": [],
  "sessionOutcomes": [],
  "sessionResults": [],
  "callingPhoneNumber": "+49123456789",
  "calledPhoneNumber": "+49123456789",
  "externalEntityTypes": [],
  "externalEntityId": 0,
  "recallCreated": false,
  "durationSeconds": "<PaginationRangeFilter<number>>",
  "createdAt": "<PaginationRangeFilter<string>>",
  "outcomeReason": "string",
  "comment": "string",
  "webexCorrelationId": "uuid",
  "pagination": "<Pagination>"
}