Skip to content

Send Campaign

Sends a campaign now — the Send action on the admin Marketing → Communications → Campaigns screen. It queues the campaign's email template to every subscribed member of its customer group.

TIP

New here? Read the Campaigns overview for what a campaign does and how its fields behave.

Operation

OperationTypePurpose
createAdminMarketingCampaignSendMutationQueue a campaign's email to its audience

Details

  • Requires an admin Bearer token and the marketing.communications.campaigns.edit permission.
  • Pass the campaign's IRI (e.g. /api/admin/marketing/campaigns/5) as id.
  • The send queues the campaign's email template to all subscribed members of its customer group right now, skipping any event-date gate. For a guest group it queues to the guest newsletter subscribers.
  • The response reports campaignId, queued (the number of recipients queued), and a message.

Active campaigns only

An inactive campaign (status = 0) cannot be sent — the mutation returns a 422 error. Activate the campaign first via update.

Input fields

FieldTypeRequiredNotes
idIDYesThe campaign's IRI

Response fields

FieldTypeNotes
campaignIdIntThe campaign that was sent
queuedIntNumber of recipients queued
messageStringHuman-readable result message

Released under the MIT License.