Send SMS from n8n
To send an SMS from n8n, add an HTTP Request node that POSTs to and body to https://smsnet.net/api/v1/messages/send with your key in the X-API-Key header. The text leaves from your own Android number, replies arrive through a Webhook node, and the free plan covers 300 a month with replies never counted. No community node, no provider account.
What do I need before the first workflow runs?
Two things: a connected phone and an API key. Install the SMSNET Gateway app on any Android 8.0 or newer phone with a SIM, sign in, and the last screen of setup shows your key once. The Android gateway guide walks through every screen. Store the key as an n8n Header Auth credential or in an environment variable, never pasted into a shared workflow export; a leaked key can be rotated from the Developers page.
Recipients go in E.164 format (+15551234567), and the person you are texting should have agreed to hear from you. If you prefer code to clicks, the same request from a script is shown in Send an SMS from Python, and the endpoint reference lives in What Is an SMS API and How to Use One.
How do I configure the HTTP Request node?
Add an HTTP Request node with these settings:
- Method: POST
- URL:
https://smsnet.net/api/v1/messages/send - Authentication: Generic Credential Type, Header Auth, with Name
X-API-Keyand Value set to your key - Send Body: true, Body Content Type: JSON, with this body:
{
"to": "+15551234567",
"body": "Your order is ready for pickup. Reply STOP to opt out."
}
On success the node returns message_id, conversation_id, and your remaining quota, so a later node can log the ID or branch on quota before a bulk run. A successful response looks like this:
{
"ok": true,
"message_id": "msg_01j9x8k2...",
"conversation_id": "conv_01j9x8k2...",
"quota": {
"month": { "used": 13, "limit": 300 },
"day": { "used": 4, "limit": 20 }
}
}
Set "transactional": true in the body only for a message the recipient is waiting on right now, such as a login code or an appointment confirmation. Transactional messages skip the pacing gap and quiet hours and reach the phone in about a second, while still respecting the daily ceiling. Marketing content marked transactional is the quickest way to get a number flagged.
How do I receive replies inside n8n?
The event-driven route is a Webhook Trigger node paired with a one-time registration. Register your production webhook URL once with a PUT:
{
"url": "https://your-n8n-host/webhook/sms-replies"
}
Send that as the JSON body of PUT https://smsnet.net/api/v1/webhooks with the same X-API-Key header, using another HTTP Request node or any API client. Keep the secret from the response for signature verification. SMSNET then POSTs message.received events for replies and message.status events for delivery updates, and retries nine times over about three days if your endpoint is down.
Point an n8n Webhook node at the same path, then add a Switch or If node on event: route message.received to your reply logic (a CRM update, a Slack message, an AI agent) and message.status to delivery logging keyed by message_id. Verify the X-SMSNET-Signature header before trusting anything, and dedupe on the X-SMSNET-Delivery header, which is stable across retries. Send yourself a test event with POST /api/v1/webhooks/test before wiring real traffic.
How do I handle 429 and 403 errors?
Set the HTTP Request node to output errors instead of stopping the workflow, then branch on the status code with an If node:
| Status | Meaning | Workflow branch |
|---|---|---|
| 429 | Monthly or daily allowance reached, including the headroom band | Wait node, then retry when the window resets, or notify yourself to upgrade on the pricing page |
| 403 | The recipient opted out; the error names the date and the words they used | Do not retry; remove them from the list and end the branch |
| 401 | Missing or wrong key; the error says whether the key was rotated | Stop and alert yourself; fix the credential |
| 400 | Missing to or body, or no phone connected to the account | Fix the payload, or reconnect the phone via the app |
The 403 branch matters most: retrying an opted-out number is both a compliance risk and a fast route to a flagged line. Write the removal first, then build the happy path.
Schedule and webhook triggers feed one send node; an If node branches on 429 to wait and on 403 to remove the contact.
Can I poll for messages on a schedule instead?
Yes. If you cannot expose a public webhook URL, use a Schedule Trigger plus an HTTP Request node that GETs https://smsnet.net/api/v1/messages?direction=inbound&limit=100 with the X-API-Key header. The first run without a cursor returns the latest messages; every run after that passes back the next_cursor from the previous call, so store it in static workflow data and send it as the since parameter. Nothing is missed or repeated even when several messages share a millisecond.
Poll every minute or two for interactive flows, less often for digest workflows. Polling suits personal or internal automation; webhooks suit anything customer facing, where seconds matter. Both observe the same states: pending, ready, sent, delivered, failed, and expired.
Everything in this guide runs on the free plan: 300 messages a month, 20 a day, replies never counted, plus a 14-day Growth trial when you need more headroom.
FAQ
How do I send an SMS from an n8n workflow?
Add an HTTP Request node that POSTs JSON with to and body to https://smsnet.net/api/v1/messages/send, with your SMSNET API key in the X-API-Key header. The response returns a message_id and your remaining quota, and the message is sent from the Android phone connected to your account.
Where do I store my SMSNET API key in n8n?
Store it as a Header Auth generic credential with the header name X-API-Key, or in an environment variable referenced by the workflow. Never paste the key into a shared workflow export, and rotate it from the Developers page if it ever leaks.
How do I receive SMS replies in n8n?
Register your n8n webhook URL once with PUT /api/v1/webhooks, then add a Webhook Trigger node on that path. SMSNET POSTs message.received events for replies and message.status events for delivery updates, signed so you can verify each one before trusting it.
What happens when my n8n workflow hits the daily or monthly limit?
The send request returns a 429 that says which limit was reached. Branch on that status with an If node, pause with a Wait node until the window resets, and use the quota object in each response to slow down before the next run hits the wall.
Can n8n poll for new messages instead of using a webhook?
Yes. Use a Schedule Trigger plus an HTTP Request node that GETs /api/v1/messages with direction=inbound, storing the returned next_cursor and sending it back as since on the next run. Polling needs no public URL and suits internal automation, while webhooks suit customer-facing flows where seconds matter.
What phone number do messages sent from n8n arrive from?
The number of the SIM in your connected Android phone. It is your own number, so replies come straight back to you and the conversation stays in one thread.
Related guides
This is a spoke of SMS Automation. Start with What Is an SMS API and How to Use One for the endpoint reference, or Send an SMS from Python for the scripted version of the same calls. The phone comes from Turn Your Android Phone into an SMS Gateway.
Send your first message today
Free plan, no card: 400 messages a month from your own number, with the API, webhooks and MCP included.
Get the app See pricing