Create a send-SMS step
POST /automations/{automationUuid}/automation_steps/send_sms
/automations/{automationUuid}/automation_steps/send_smsSends an SMS to the contact when it reaches this step and lets it continue. Its place in the flow is set with parent, parent_yes or parent_no; with none of them it becomes the first step.
When to use: To send a text inside a flow: order updates, appointment reminders or time-limited offers.
When not to use: To send an email, use create_step_send_campaign. To send an SMS to a whole audience once, use create_sms_campaign.
Side effects: The step keeps its SMS settings as an internal automation campaign. A real SMS goes to the contact and uses the account's SMS credits. The contact needs a phone number and a confirmed SMS subscription, otherwise the step is skipped; the same SMS is not sent twice within 6 hours. If the account has too few SMS credits, the country is not available or the provider rejects the message, the SMS is logged as failed and the contact moves on anyway. If the account is inactive, suspended or expired, the audience is blocked or the SMS sender is not active, the step does not complete. If the chosen position is already occupied, the new step is inserted there and the step that was there moves after it.
Permissions: Requires the author role or higher, or the marketing.automations.write capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the automation, as returned by list_automations.
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 POST "https://api.easymailing.com/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/send_sms" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "action": { "title": "Order reminder", "message": "Hi, your order is waiting for you at Acme.", "sms_sender": "/sms_senders/1", "track_clicks": true }, "parent": "/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90" }'{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "step_type": "string", "automation": "/entity/1", "count_automation_queue_items_completed": 0, "count_automation_queue_items_in_queue": 0, "action": { "title": "string", "message": "string", "sms_sender": "/entity/1", "track_clicks": true, "track_ecommerce": true, "track_google_analytics": true, "google_analytics_tag": "string" }, "children": { "next": { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "step_type": "string", "automation": "/entity/1", "count_automation_queue_items_completed": 0, "count_automation_queue_items_in_queue": 0, "action": null, "children": null } }}