Search Examples:
Basic Search:
{
"page": 0,
"size": 20,
"fromDate": "2024-01-01T00:00:00Z",
"toDate": "2024-01-31T23:59:59Z",
"callStatuses": ["Completed", "Failed"],
"includeAggregations": true
}
Text Search:
{
"searchText": "connection timeout",
"size": 50
}
Agent and Endpoint Filtering:
{
"agentIds": ["agent-123", "agent-456"],
"endpoint": "sales-webhook",
"includeAggregations": true
}
Nested JSON Search (PostCall Analysis):
{
"additionalDataFilters": {
"result.postCallAnalysis.info.age": { "gt": 36 },
"result.postCallAnalysis.info.name": "Andrew",
"result.postCallAnalysis.sentiment": "positive"
}
}
Complex Search with Custom Aggregations:
{
"fromDate": "2024-01-01T00:00:00Z",
"callStatuses": ["Completed"],
"additionalDataFilters": {
"result.postCallAnalysis.info.age": { "gte": 25, "lte": 65 }
},
"includeAggregations": true,
"aggregationFields": ["result.postCallAnalysis.info.city", "result.postCallAnalysis.sentiment"],
"sortField": "completedTime",
"sortDirection": "Descending",
"size": 100
}
Search request with filters, pagination, and aggregation options
DTO for CallResult search requests
Page number (0-based)
Page size (max 100)
1 <= x <= 100Filter by specific agent IDs
Filter by call statuses
Unknown, Created, Pending, Queued, Completed, Failed, Canceled, Running Filter by date range - start date
Filter by date range - end date
Free text search across call data
Specific call IDs to search for
Filter by endpoint
Search within call additional data (JSON search)
Sort field
Sort direction
Ascending, Descending Include aggregations in response
Custom aggregation fields to include
Returns search results
DTO for CallResult search responses
Search results
Total number of results found
Current page number (0-based)
Page size
Total number of pages
Search execution time in milliseconds
Search aggregations (if requested)