Skip to main content
POST
Create campaign draft

Endpoints

  • POST /campaigns
  • GET /campaigns
Campaigns created through the public API always begin as drafts. The API does not schedule, approve, or send them.

Create request

Authorizations

Authorization
string
header
required

Integration key for backend workloads, or a scoped personal key (sr_user_) for account discovery and supported project operations. MCP accepts only personal keys.

Headers

X-Sendrealm-Project-Id
string<uuid>

Explicit project context. Required for personal-key project resource calls; integration keys retain their configured default. MCP clients supply project_id in each tool call instead.

Body

application/json
name
string
required
Required string length: 1 - 120

Response

Campaign draft created

status
integer
required

HTTP response status code

data
object
required