Campaigns
Preview an email
Renders a step (or a draft subject and body) for a lead, with variables filled in. Nothing is sent. **Required scope:** `campaigns:read`
POST
Renders a step (or a draft subject and body) for a lead, with variables filled in. Nothing is sent.
Required scope: campaigns:read
apiKeyheader
AuthorizationBearer <token>A workspace API key (mf_live_…), created under Settings → API keys. Send it as Authorization: Bearer <key>.
campaignId*stringMatch
^[a-f0-9]{24}$application/json- body
stepId?stringLength
length <= 24variantId?stringLength
length <= 24draft?leadId?stringMatch
^[a-f0-9]{24}$accountId?stringMatch
^[a-f0-9]{24}$values?Default Response
application/json- response
data*curl -X POST 'https://api.coldvenue.in/api/v1/campaigns/string/preview' \ -H 'Content-Type: application/json' \ -d '{}'Example Response200
{ "data": { "subject": "string", "html": "string", "text": "string", "headers": { "property1": "string", "property2": "string" }, "values": { "property1": "string", "property2": "string" } }}Replace a campaign’s sequence PUT
Saves the whole sequence at once. A/B variants need the A/B testing plan feature. **Required scope:** `campaigns:write`
Send a test email POST
Sends a rendered step to a test address from one of the campaign’s accounts. **Required scopes:** `campaigns:write` and `campaigns:read`