Skip to Content
ColdVenue API
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
/api/v1/campaigns/{campaignId}/preview

Renders a step (or a draft subject and body) for a lead, with variables filled in. Nothing is sent.

Required scope: campaigns:read

Authorization

apiKey
headerAuthorizationBearer <token>

A workspace API key (mf_live_…), created under Settings → API keys. Send it as Authorization: Bearer <key>.

Path Parameters

campaignId*string
Match^[a-f0-9]{24}$

Request Body

application/json
  1. body
stepId?string
Lengthlength <= 24
variantId?string
Lengthlength <= 24
draft?
leadId?string
Match^[a-f0-9]{24}$
accountId?string
Match^[a-f0-9]{24}$
values?

Response Body

Default Response

application/json
  1. response
data*
Example Request
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"    }  }}