Create project campaign
Required scope: campaigns:manage
Creates a draft campaign on any plan. senderConfig.sessionIds may name numbers that are not yet on a plan that includes Campaigns; launch checks the selection. It is refused with 403 bansafe_org_suspended while the team is suspended and 400 when senderConfig.sessionIds is malformed or a per-number cap is above its safety ceiling.
Authorizations
Polymorfa organization key (pmfa_ prefix), project token (pmfa_pt_ prefix) where supported, or short-lived client token (pmfa_ct_ prefix). Organization and project keys may be personal or service-account owned and enforce selected action scopes. Organization keys cover the team and its projects; project tokens stay inside one project. Client tokens stay inside their live project and session and enforce their client rules.
Headers
Unique key, 1 to 255 bytes of UTF-8, that makes this write safe to retry for 24 hours. A retry with the same key, credential, Polymorfa-Version, and request never runs the write again: it returns 409 idempotency_completed when the original succeeded, or the original server error, with Idempotent-Replayed: true. Reusing the key for a different request returns 409 idempotency_conflict; a retry while the original is still running returns 409 idempotency_in_progress, and a retry after an unrecorded outcome returns 409 idempotency_outcome_unknown.
Value constraints
1 - 255Path Parameters
Specifies project slug for this path parameter.
Body
Human-readable name for this resource.
Value constraints
1Identifier of the message template.
Identifier for the recipient list.
Structured sender config values for this native create campaign request.
Unix timestamp in milliseconds when this operation is scheduled to start.
Specifies send window for this native create campaign request.
Accepted alternatives
Accepted alternatives
Recipients to add inline, at most 1,000. Every entry must be valid or the campaign is not created; a repeated phone is kept once. Combine with recipientListId to add an audience at launch; add more with the add-recipients endpoint while the campaign is a draft.
Value constraints
1000