Request
Method:GETEndpoint:
/api/calls/{agentId}Headers:
X-Authorization: Your API key (required)
agentId(string, required): The ID of the agent whose calls you want to retrieve
Notes
- Array filters can be specified multiple times in the query string to filter by multiple values
- All date parameters should be in ISO 8601 format (e.g.,
2024-01-01T00:00:00Z) - Duration values are in seconds
- Phone numbers should be URL-encoded (e.g.,
+1234567890becomes%2B1234567890) - The
totalfield in the response indicates the total count of matching calls, which may be greater than the number of items returned based on thelimitparameter
Examples
Basic Request:Authorizations
Path Parameters
The ID of the agent whose calls you want to retrieve
Query Parameters
Maximum number of results to return
Number of results to skip for pagination
Filter by customer phone number
Filter by campaign ID
Filter by call status (can specify multiple values)
Filter by sentiment (can specify multiple values)
Filter by call type (can specify multiple values)
Filter by call outcome (can specify multiple values)
Filter by call ended reason (can specify multiple values)
Filter by call mode (can specify multiple values)
Filter calls after this date (ISO 8601 datetime format)
Filter calls before this date (ISO 8601 datetime format)
Minimum call duration in seconds
Maximum call duration in seconds

