Calls & Campaigns
List Campaigns
Retrieve a list of all campaigns with filtering and pagination options
GET
List Campaigns
Retrieve a list of all campaigns for the authenticated environment with various filtering options and pagination support.Endpoint
Request headers
Bearer token for authentication. Format:
Bearer talq_your_environment_token_hereQuery parameters
Filter by campaign status. Options:
draft, active, paused, completed, cancelledFilter by campaign type. Options:
sales, follow_up, reminder, customFilter by agent ID
Filter campaigns from date (YYYY-MM-DD)
Filter campaigns to date (YYYY-MM-DD)
Search in campaign name or description
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 campaign objects.
Pagination metadata.
Error responses
401 Unauthorized
422 Validation Error
500 Server Error
Error codes
| Code | Description | HTTP Status |
|---|---|---|
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
Pagination support. All list endpoints support pagination with
page and per_page parameters.Date filtering. Use
date_from and date_to to filter campaigns by date range.Search functionality. The search parameter searches in campaign names and descriptions.
Statistics included. Each campaign includes real-time statistics about call performance.
Related endpoints
- Create Campaign:
POST /api/v1/campaigns - Get Campaign:
GET /api/v1/campaigns/{campaign_id} - Update Campaign:
PUT /api/v1/campaigns/{campaign_id} - List Calls:
GET /api/v1/calls