Launch a draft campaign
Requires EDITOR. draft only (else 409). Requires an active template and provider (else 409) and the EMAIL_CAMPAIGN_EXPAND queue binding (else 503). Enqueues expansion.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Tenant project id (row-level isolation on every query).
Campaign id.
Responses
Section titled “Responses”Campaign moved to expanding.
object
Email campaign (serialized). See handler for the full field set.
object
Segment predicate shared by campaigns and trigger userFilter (all fields optional).
object
Not authenticated (no valid session/principal).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Authenticated but lacks the required project role.
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Resource not found (or belongs to another project — indistinguishable).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Not draft, or no active template/provider.
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Campaign expand queue not bound.
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}