Create draft.

POST/api/v1/campaigns
Build a request

Request example

Documented defaults and example values are ready. Change only the parameters you need.

Connection

Replace the Bearer API key placeholder in the copied server-side code. No API key is entered or sent here.

Agency-scoped keys require the X-Sub-Account-Id header.

Body parameters

Edit the full JSON body
cURL
curl --request POST \
  --url 'https://your-crm.example.com/api/v1/campaigns' \
  --header 'Authorization: Bearer <YOUR_API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{"name":"November newsletter","subject":"What'\''s new this month","preheader":"Product updates, upcoming events, and a special offer inside.","contentHtml":"<h1>Hi {{contact.firstName}}!</h1><p>Here'\''s what shipped this month...</p>","layout":"Default newsletter layout","listId":"el_abc123"}'

This shows a static response from the documentation. It does not send a request to your CRM or use an API key.