Skip to main content
GET
List campaigns
Use this endpoint to retrieve a paginated list of campaigns with optional filters.

API Endpoint

GET /api/v1/global/campaign-list Base URL: https://www.tryunleashx.com Authentication: Required (Token header: token or api_access_token)

Query Parameters

Workspace Scope

By default the list is scoped to the workspace the API token belongs to. Passing workspace_id overrides that, which is how a company-level token reads another workspace’s campaigns:
  • ?workspace_id=293 — campaigns of workspace 293 only
  • ?workspace_id=[293,294] — campaigns of both workspaces
The scope is always restricted to the token’s own company, so a workspace_id belonging to another company returns no records. Use List Workspaces to discover the ids you can pass here.

Campaign Status Values

Success Response

Status Code: 200 OK

Response Fields

Campaign Object

Pagination Object

Notes

  • campaign_status defaults to all statuses except deleted.
  • A campaign is automatically labeled Completed in campaign_status_name if its end_date has passed. The numeric campaign_status is unchanged.
  • progress is formatted as called/total audience count.
  • workspace_id / workspace_name are returned only for API-token (global) requests.
  • Results are ordered by creation date, newest first.

Example cURL

Campaigns of the token’s own workspace

Campaigns of a specific workspace

Campaigns across multiple workspaces

Headers

token
string
required

API token for authentication

Query Parameters

page
integer

Page number (default: 1)

limit
integer

Records per page (default: 10)

agent_id
integer

Filter by agent ID

campaign_name
string

Partial name search (LIKE)

campaign_status
enum<string>

Filter by status. Accepts a single value or a JSON array such as ["draft","inprogress"]. Defaults to all except deleted.

Available options:
draft,
inprogress,
hold,
pause,
force_completed,
deleted
workspace_id
string

Workspace scope override. Accepts a single id (293), a JSON array ([293,294]) or a comma-free JSON string. When omitted the token's own workspace is used. Always restricted to the token's company.

Response

Campaign list retrieved successfully

campaigns
object[]
pagination
object