GET Get Campaign​
GET
/campaigns/{id}
Retrieve a single campaign by ID. Optionally include related data (template, subjects) via the with parameter. When viewCampaign is set, returns the campaign with its paginated emails. Also returns available email templates and the server's current time.
Authorizations​
ApplicationPasswords
WordPress Application Passwords — use Basic auth with your WordPress username and an application password in the format: username:application_password
Type
API Key (header: Authorization)
Parameters​
Path Parameters
id*
The campaign ID.
Type
Requiredinteger
Query Parameters
with[]
Include related data (e.g., template, subjects).
Type
array
viewCampaign
If set, returns the campaign with paginated emails instead of the standard response.
Type
string
Responses​
Campaign retrieved successfully.
application/json
JSON
{
"campaign": {
"id": 0,
"title": "string",
"slug": "string",
"status": "string",
"template_id": 0,
"email_subject": "string",
"email_pre_header": "string",
"email_body": "string",
"recipients_count": 0,
"design_template": "string",
"scheduled_at": "string",
"settings": {
},
"server_time": "string",
"created_at": "string",
"updated_at": "string",
"template": {
},
"subjects": [
{
}
]
},
"templates": [
{
"ID": 0,
"post_title": "string"
}
]
}