To send a text from Power Automate, add an HTTP action that POSTs to your SMS provider's REST endpoint, with the API key in a header and the recipient and message in a JSON body. No custom connector is needed. The part that takes care is retries: Power Automate's default retry policy knows nothing about idempotency keys, so you'll want to set it yourself.
We make Ready, so the example calls the Ready API and uses only the request shape we document. The same flow design works with any provider that takes an idempotency key. One licensing note first: the HTTP action is a premium connector, so check that your Power Automate plan includes it.
What you need first
- An API key. Ready authenticates with an
X-API-Keyheader. Create a test key (Settings, Developers, Environment: Test) while you build: it simulates every send with no card, number or charge. - A real number and card before you go live, plus a plan for registration. An account can send up to 500 texts a calendar month until the business is verified and registration is paid for. Most approvals take 1 to 14 days.
- Consent. Each request carries
consent_attested: true, your promise the recipient agreed to texts. Set it only for people who did. Our guide to documenting SMS consent shows what to keep on your side.
Where to store the API key
Don't paste the key into the action. Anyone who can edit the flow could read it, and it would be copied with the flow. Two safer patterns, in general terms:
- A secured environment variable. Power Platform environment variables can hold a secret, and that secret can point at Azure Key Vault. The flow reads the variable at run time.
- A Key Vault action. Read the secret from Key Vault at the start of the flow and pass it to the HTTP action.
Then open the HTTP action's settings and turn on secure inputs and outputs, so the key doesn't show in run history. Rotate the key if a run ever logged it.
Build the flow
A flow that texts a new lead has four steps.
1. Pick a trigger
Any trigger that hands you a phone number works. Two common ones:
- A new row in Dataverse, SharePoint or Excel: use the row's phone and name columns.
- A form response: with Microsoft Forms, add "Get response details" after the trigger, then use the phone and consent answers.
Normalize the number to E.164 (+12125550199). A 10-digit US number is treated as +1, but a stray space or bracket isn't guaranteed to parse, so strip them first.
2. Make one key per text
Add an "Initialize variable" action named idemKey, type String, with the expression guid(). Doing it in a variable, not inside the HTTP header, matters. A guid() written in the header is evaluated again if you loop, and a new key on a retry defeats the purpose.
3. Call the API
Add an HTTP action:
- Method: POST
- URI:
https://api.tryready.com/v1/messages - Headers:
X-API-Key(your secret),Content-Type: application/json,Idempotency-Keyset to theidemKeyvariable - Body:
{
"to": "+12125550199",
"body": "Hi Dana, thanks for your request. We'll call you today. Reply STOP to opt out.",
"consent_attested": true
} Swap the example to and body for dynamic content from the trigger. Values from a form can hold quotes or line breaks, and they'd break hand-built JSON, so wrap each dynamic value in replace(value, '"', '\"') or build the object in a Compose action first. Leave from out and Ready picks the number: the one this contact already texts with, otherwise your primary number.
4. Check the result
Add a condition on outputs('HTTP')?['statusCode'] and write the outcome back to the row or a log. The exact response fields are in the messages API reference; read them there rather than from a blog post.
Set the retry policy to match the key rules
Power Automate's HTTP action has a retry policy in its settings, and the default retries on several failures with exponential backoff. It can't tell one kind of failure from another, and the rules here are specific:
| What happened | What to do |
|---|---|
| Timeout or dropped connection | Retry with the same key |
409 idempotency_in_progress | Wait, then retry with the same key |
| Any 5xx | Don't reuse the key. Check GET /v1/messages, then send with a new key if the text isn't there |
| Other 4xx | Don't retry |
A 5xx is stored under the key and replayed, so the same key just returns the same failure and sends nothing. A blanket retry policy can't give you "same key only on timeout or 409", so set the action's retry policy to None and do the choosing yourself:
- Put the HTTP action inside a Do until loop that runs at most 4 times.
- Under "Configure run after", let the next step run when the HTTP action has succeeded, failed or timed out.
- In a condition, loop again only if the action timed out, or the status is 409 and the body contains
idempotency_in_progress. Keep the sameidemKeyvariable for every loop. - For a 5xx, exit the loop, read
GET /v1/messageswith another HTTP action, and only if the text isn't there, setidemKeyto a freshguid()and send once more.
Set the action's timeout (in its settings, an ISO 8601 value such as PT30S) so a stalled call fails instead of waiting for the platform limit.
If a trigger can fire twice for the same row, a guid() won't catch it, because each run makes its own key. Derive the key from the row instead; our post on deterministic idempotency keys for SMS shows how.
When a text is refused
Ready refuses some sends up front and doesn't charge for them: numbers that opted out, numbers on your Ban list and known landlines. Treat that as final. Don't retry it, and don't switch numbers for the same person.
In the flow, route a refusal to a branch that marks the contact "do not text" in your data. If you're unsure whether someone has opted out, call GET /v1/opt-outs/:phone before the send. Error codes are listed in the errors reference. Our post on handling SMS opt-outs covers the STOP flow.
Quiet hours, for developers
Ready checks the recipient's local time before it sends. An API text is held only if the quiet-hours window opens within 24 hours. Otherwise the API answers 409 QUIET_HOURS_BLOCK, nothing is sent and you send it again once the window opens.
Both this and idempotency_in_progress arrive as a 409, so branch on the body text, not the status alone. For a quiet-hours block, don't loop. Add a Delay until step set to when the window reopens, or write the row back to a queue and let a scheduled flow pick it up. Our guide to handling the quiet-hours 409 has more patterns.
What it costs
Assume a flow that texts 1,500 new leads a month with one single-segment message each, screening off. That's 1,500 segments. At $0.0075 plus the $0.0045 carrier fee, 1,500 × $0.012 = $18, plus $2 for the number: $20 a month. The all-in rate includes the carrier fee but not screening. Power Automate's own licensing is separate and depends on your plan.
Ready's all-in prices per segment include the carrier fee but not screening: Scrub lists and Number validation, the two switches in Settings under Compliance, each add $0.003 per segment when switched on, shown as screening on your bill, and both are off by default. Unless you turn the opt-out footer off, the first text to each contact, and one again from time to time, also gets "Reply STOP to opt out" and your business name if the message does not already have them, so a text close to the segment limit can bill one more segment.
Accounts opened before 17:55 UTC on November 12, 2026 keep their signup prices, shown under Billing, and so do the sub-accounts they open.
Frequently asked questions
Can Power Automate send SMS without a custom connector?
Yes. The HTTP action can POST to any REST endpoint. Add the URL, the API key header and a JSON body, and you have a working text step. The HTTP action is a premium connector, so check your license.
Where should I keep the API key in a flow?
In a secured environment variable, or a secret read from Azure Key Vault. Turn on secure inputs and outputs for the HTTP action so the key stays out of run history.
Should I use the built-in retry policy?
No, not for sends. It can't tell a timeout from a 5xx, and only a timeout or a 409 idempotency_in_progress should reuse the same key. Set it to None and use a Do until loop with your own rules.
What happens if I text someone who opted out?
Ready refuses the send up front and doesn't charge for it. Treat the refusal as final, mark the contact in your data and don't retry.
Wrapping up
Texting from Power Automate is one HTTP action and a handful of settings: a secret for the key, a variable holding the idempotency key, retries you control and a branch for refusals and quiet hours. Start with a test key and one trigger, then add the rest. For more no-code patterns, see our guide to SMS automation with Zapier, Wix and other workflow tools. When you're ready to go live, sign up and follow the API quickstart.