Calls & Campaigns
Get Agent Calls
Retrieve all calls for a specific agent with filtering and pagination
GET
Get Agent Calls
Retrieve all calls for a specific agent with various filtering options and pagination support.Endpoint
Path parameters
The unique identifier of the agent.
Request headers
Bearer token for authentication. Format:
Bearer talq_your_environment_token_hereQuery parameters
Filter by call status. Options:
initiated, ringing, answered, completed, failed, busy, no-answerFilter by call direction. Options:
inbound, outboundFilter calls from date (YYYY-MM-DD)
Filter calls to date (YYYY-MM-DD)
Search in phone numbers or call SID
Number of items per page (default: 20, max: 100)
Page number (default: 1)
Example requests
Response
Success Response (200 OK)
Response fields
Indicates if the operation was successful.
Array of call objects for the specific agent.
Pagination metadata.
Error responses
404 Not Found
401 Unauthorized
422 Validation Error
500 Server Error
Error codes
| Code | Description | HTTP Status |
|---|---|---|
AGENT_NOT_FOUND | Specified agent does not exist | 404 |
INVALID_TOKEN | Authentication token is invalid or missing | 401 |
VALIDATION_ERROR | Query parameter validation failed | 422 |
SERVER_ERROR | Internal server error occurred | 500 |
Important notes
Agent-specific filtering. This endpoint returns only calls associated with the specified agent.
Same filtering options. All filtering options from the main calls endpoint are available.
No agent object. The response doesn’t include the agent object since it’s already specified in the URL.
Related endpoints
- List Calls:
GET /api/v1/calls - Get Agent:
GET /api/v1/agents/{agent_id} - List Campaigns:
GET /api/v1/campaigns