Skip to main content
GET
List campaigns
Needs campaigns:read. See Permissions.
Gives every campaign of every workspace the key can reach, as a list (not wrapped in data, and not paged).
  • workspace_id keeps one workspace’s campaigns.
  • status keeps the campaigns that have that status now: DRAFT, SCHEDULED, ACTIVE, COMPLETED or CANCELLED, in capitals.
A campaign’s status follows its dates when it is read: SCHEDULED until start_date, ACTIVE until end_date, then COMPLETED. DRAFT and CANCELLED are holds that stay until the campaign is changed. The filter matches the status the answer shows, so a campaign that started since it was saved is found with status=ACTIVE. start_date and end_date are in the workspace’s timezone, as Y-m-d H:i. Each campaign carries its workspace: the object List workspaces gives, with no accounts or brand_voice. Reading campaigns works on every plan. Creating and editing them is on paid plans: on Free, campaigns made while the owner paid can still be read, deleted and taken off posts, but no other post can be put in them.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

workspace_id
integer

Only this workspace's campaigns. It must be one the key can reach.

status
enum<string>

Only the campaigns with this status now, as the answer shows it (it follows the dates). Upper case.

Available options:
DRAFT,
SCHEDULED,
ACTIVE,
COMPLETED,
CANCELLED

Response

The campaigns.

id
integer
required

The campaign's id. Send it as a post's campaign_id.

name
string
required
Maximum string length: 255
status
enum<string>
required

SCHEDULED until start_date, ACTIVE until end_date, then COMPLETED: these follow the dates when the campaign is read. DRAFT and CANCELLED are holds set on the campaign, which stay until it is changed. The status only describes the campaign: it doesn't hold back or send its posts.

Available options:
DRAFT,
SCHEDULED,
ACTIVE,
COMPLETED,
CANCELLED
start_date
string
required

When it starts, in the workspace's timezone, as Y-m-d H:i.

end_date
string
required

When it ends, in the workspace's timezone, as Y-m-d H:i.

description
string | null
required
Maximum string length: 255
workspace
object
required

The campaign's workspace, as List workspaces gives it, with no accounts or brand_voice.