Campaigns
Get campaign
Returns one campaign with its email blocks, campaign data, reply-to profile, and schedule timestamps. Poll this to follow a campaign held in waiting_approval: on approval the status returns to scheduled (or sending, if the scheduled time already passed), and on rejection it becomes rejected with reviewer feedback in rejectionComment.
get/campaigns/{campaignId}
Path parameters
campaignIdstring required
Campaign ID
Response
Campaign returned
Example response
{
"success": true,
"campaign": {
"id": "camp_abc123",
"name": "April Launch",
"type": "email",
"subject": "A quick update",
"emailId": "email_abc123",
"status": "draft",
"labels": [
"edm",
"api"
],
"preheader": "Latest product news",
"preheaderText": "Latest product news",
"blocks": [
{
"id": "block_123",
"type": "html",
"content": "<h1>Hello</h1>",
"styles": {
"backgroundColor": "#f8fafc",
"backgroundOpacity": 80,
"textColor": "#111827",
"borderRadius": 12,
"borderColor": "#cbd5e1",
"borderWidth": 1
},
"conditions": [
{
"id": "c1",
"value": "plan:pro"
}
]
}
],
"replyProfileId": "reply_abc123",
"replyToName": "Support",
"replyToEmail": "support@example.com"
}
}