Easymailing
S M S campaigns

Send a test SMS of a campaign

PUT /sms_campaigns/{uuid}/actions/send_test

PUT/sms_campaigns/{uuid}/actions/send_test

SENDS REAL TEST SMS of a draft campaign to up to 5 phone numbers that you choose, so you can read it on a phone. It reaches only those numbers, never the campaign recipients, and the campaign stays a draft. The message is the one saved in the campaign, with its personalization tags filled with the data of one of the campaign recipients, so the campaign needs at least one.

When to use: Before sending or scheduling an SMS campaign, to check the message and the sender on a real phone.

When not to use: To send to the actual recipients, use send_sms_campaign_now or schedule_sms_campaign. For an email campaign, use campaign_send_test.

Side effects: Sends real SMS to the numbers in phones. It is not a campaign send: the status and statistics of the campaign do not change. The response does not say whether each number was reached.

Permissions: Requires the viewer role or higher, or the marketing.campaigns.read 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

application/problem+json

curl -X PUT "https://api.easymailing.com/sms_campaigns/b6c9e1f3-2a74-4d58-8e0b-3f7a5d1c9e42/actions/send_test" \  -H "X-Auth-Token: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "phones": [      "string"    ]  }'
null