Easymailing
S M S campaigns

Send an SMS campaign now

PUT /sms_campaigns/{uuid}/actions/send_now

PUT/sms_campaigns/{uuid}/actions/send_now

SENDS THE CAMPAIGN FOR REAL: starts delivering the text message right away to every recipient of the campaign, meaning the contacts with a confirmed SMS subscription and a phone number. These are real SMS to real people; once it starts it cannot be undone or recalled. Before sending, check with get_sms_campaign that the campaign has recipients (recipient_count above 0), no entry in warnings has blocks_sending: true (for example not enough SMS credits), and its status is draft, ready or scheduled. The checks run at the moment of sending, not before: if one fails the request is rejected.

When to use: Only when the person has confirmed that this SMS campaign must go out now to all its recipients.

When not to use: To send at a later time, use schedule_sms_campaign. To see the message on a phone, use send_sms_campaign_test: it sends only to the numbers you list. For an email campaign, use campaign_send_now.

Side effects: Real delivery: the status becomes campaign.status.sending and then campaign.status.sent, and SMS credits of the plan are used as the messages go out. A scheduled campaign can also be sent now; its schedule is cancelled. If a check at send time fails (no recipients, account not allowed to send, not enough credits, daily limit reached, expired subscription, blocked audience), the request returns 400 and the campaign is left in campaign.status.error: it can no longer be edited or sent, so retry with a copy from duplicate_sms_campaign.

Permissions: Requires the manager role or higher, or the marketing.campaigns.send capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the SMS campaign (the uuid field returned by list_sms_campaigns).

Request Body

The updated SmsCampaign resource

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://api.easymailing.com/sms_campaigns/b6c9e1f3-2a74-4d58-8e0b-3f7a5d1c9e42/actions/send_now" \  -H "X-Auth-Token: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "campaign_confirmation_email": true,    "mailing_confirm_emails": [      "user@example.com"    ]  }'
null