Skip to main content
POST
Create a new campaign

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Body

application/json
name
string
Example:

"Summer Promotion 2025"

description
string | null
Example:

"Campaign for summer products promotion"

status
enum<string>
Available options:
Active,
Draft,
Completed,
Archived
Example:

"Draft"

campaign_type
string | null
Example:

"email"

start_date
string<date-time> | null
Example:

"2025-06-01T00:00:00Z"

end_date
string<date-time> | null
Example:

"2025-08-31T23:59:59Z"

rules
object | null
Example:
agent_uuid
string<uuid> | null

Agent UUID. The channel binding (agent_app) is resolved automatically from the agent's first configured channel.

Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

Created

success
boolean

Indicates whether the request completed successfully. True for successful responses; false for documented error responses.

Example:

true

message
string

Human-readable response message. Safe to display in logs or simple client notifications; use structured fields for program logic.

Example:

"Campaign created successfully"

data
object