Skip to main content
GET
Get Campaigns
This endpoint provides comprehensive access to all campaigns associated with a company. It supports pagination, filtering by status, and sorting to efficiently manage large numbers of campaigns.
This endpoint returns essential campaign information optimized for list views and campaign management interfaces. For detailed campaign information, use the Get Campaign Details endpoint.

Path Parameters

string
required
The unique identifier of the company whose campaigns you want to retrieve

Query Parameters

integer
default:"20"
Maximum number of campaigns to return per request (max 100)
integer
default:"0"
Number of campaigns to skip for pagination
string
default:"DESC"
Sort order for campaigns: “ASC” (ascending) or “DESC” (descending)
string
Filter campaigns by status: “active”, “inactive”, “scheduled”, “expired”
Search campaigns by name or description
string
Filter campaigns starting after this date (YYYY-MM-DD)
string
Filter campaigns starting before this date (YYYY-MM-DD)

Response

array
Array of campaign objects
object
Pagination information for the response

Response Example

Get Active Campaigns Only
Search Campaigns by Name
Get Campaigns with Pagination
Get Upcoming Campaigns
Filter by Date Range
Performance Optimization: Use pagination (limit and offset) when dealing with companies that have many campaigns to ensure fast response times and efficient resource usage.
Search Functionality: The search parameter performs case-insensitive matching against both campaign names and descriptions, making it easy to find specific campaigns.

Campaign Status Overview

active: Currently running campaigns
  • Promotions are being applied
  • Visible to customers
  • Within start and end date range
inactive: Paused or disabled campaigns
  • Not currently applying promotions
  • Hidden from customers
  • Can be reactivated at any time
scheduled: Future campaigns
  • Set to start automatically on start_date
  • Not yet visible to customers
  • Can be modified before activation
expired: Past campaigns
  • End date has passed
  • No longer applying promotions
  • Archived for historical reference

Use Cases

Campaign Dashboard
  • Display overview of all active campaigns
  • Monitor campaign performance at a glance
  • Quick access to campaign management actions
Campaign Planning
  • Review upcoming scheduled campaigns
  • Plan campaign calendars and timing
  • Identify gaps in marketing coverage
Performance Analysis
  • Compare active vs inactive campaigns
  • Analyze campaign timing and duration
  • Identify successful campaign patterns
Campaign Administration
  • Bulk campaign management operations
  • Search and filter for specific campaigns
  • Organize campaigns by status and timing

Error Responses

Company Not Found
Invalid Parameters
Invalid Date Format
Large Result Sets: When requesting campaigns without pagination, large companies may experience slower response times. Always use pagination for production applications.