Skip to main content
GET
Get a campaign
Needs campaigns:read. See Permissions.
Gives the campaign when it is in a workspace the key can reach. status follows the dates when it is read, unless the campaign is held at DRAFT or CANCELLED. start_date and end_date are in the workspace’s timezone, as Y-m-d H:i. Reading campaigns works on every plan, Free included. The posts in a campaign have its id as their campaign_id, and carry the campaign in Get a post.

Errors

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

The campaign's id.

Response

The campaign.

A campaign that groups posts.

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.