API reference

Launch a campaign

Move a Draft campaign to Pending and start sending.

POSThttps://nextgenpanel.cloudshope.com/api/v1/email/campaigns/{id}/launch

Materialises the send queue for a Draft campaign and hands every recipient to the background sender. The call returns as soon as the queue is built — delivery happens asynchronously.

Poll the analytics endpoint for progress.

Authentication

Send Authorization: Bearer <token>. Any valid API token for the account works.

Path parameters

NameTypeRequiredDescription
idintegerYesCampaign id.

Request

curl -X POST https://nextgenpanel.cloudshope.com/api/v1/email/campaigns/611/launch \
  -H "Authorization: Bearer cs_live_9f2c…"

Response

{ "queued": 2 }
200 — example response

Errors

StatusTypeWhen
400bad-requestThe campaign is not in a launchable state, or has no recipients.
404not-foundNo campaign with this id on the account.
401unauthorizedThe Authorization header is missing, malformed or the token is invalid or expired.
403forbiddenThe token is valid but the account is not allowed to perform this action.