Send SMS Worldwide Easily with n8n and ClickSend API

Discover how to send SMS globally using n8n workflow integrated with ClickSend API. This tutorial helps you automate SMS sending efficiently, saving time and avoiding manual errors in communication.
manualTrigger
httpRequest
set
+1
Workflow Identifier: 1813
NODES in Use: Manual Trigger, HTTP Request, Set, Sticky Note
Send SMS worldwide with n8n and ClickSend API

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow sends SMS messages worldwide using the ClickSend API.
It solves the problem of manually sending SMS with mistakes or delays.
Users get SMS sent quickly without typing errors or confusion about phone numbers.

The workflow takes text and phone numbers with correct international format as input.
Then it sends the message using ClickSend’s HTTP POST request with basic auth.

The result is reliable SMS delivery to any country through ClickSend.


Who Should Use This Workflow

Small business owners or anyone needing to send SMS worldwide often.
People who want to avoid typing errors in phone numbers or messages.

Users who want to save time by automating SMS sending in n8n.
Those who need simple basic-auth API integration with ClickSend.


Tools and Services Used

  • ClickSend API: For sending SMS via HTTP POST with basic authentication.
  • n8n automation platform: To create, run, and manage SMS workflows.
  • HTTP Request node in n8n: To call ClickSend API with message and recipient data.
  • Set node in n8n: To set SMS text and phone number fields.
  • Optional – self-host n8n: Useful for users wanting more control by running automation on own servers. self-host n8n

Inputs, Processing, and Output

Inputs

  • SMS message content, for example: “Hi, this is my first message”.
  • Recipient phone number including international ‘+’ prefix, e.g., “+39xxxxxxxx”.
  • ClickSend API username and API key for authentication.

Processing Steps

  • The Set SMS data node assigns static or dynamic sms and to fields.
  • The Send SMS HTTP Request node sends a POST request to ClickSend with a JSON body.
  • The HTTP headers include Content-Type: application/json, and use Basic Auth with username and API key.
  • The JSON body is constructed with expressions to embed sms text and recipient number dynamically.

Output

  • Successful HTTP response (status 200) confirming SMS sent.
  • ClickSend dashboard updates showing sent SMS logs.
  • Errors returned if authentication fails or phone number is invalid.

Beginner Step-by-Step: How to Use This Workflow in n8n

Importing the Workflow

  1. Download the workflow JSON file using the Download button on this page.
  2. Open the n8n editor where workflows are created.
  3. Use the Import from File option to upload the downloaded workflow.

Configuring Authentication and Data

  1. Open the Send SMS HTTP Request node.
  2. Add ClickSend username as HTTP Basic Auth username.
  3. Add ClickSend API key as HTTP Basic Auth password.
  4. Open the Set SMS data node.
  5. Change the sms field to desired message text or connect dynamic inputs.
  6. Change the to field to the recipient phone number with ‘+’ prefix.
  7. Save the nodes.

Testing and Activating

  1. Run the workflow once using Execute Workflow or Test Workflow button.
  2. Check if the SMS is sent successfully and the HTTP response is 200.
  3. If successful, toggle workflow status to Active to run in production.
  4. Optionally schedule the workflow or add triggers for automation.

Following these steps lets users quickly use the workflow to send SMS worldwide.
The user does not need to build from scratch nor add code manually.


Step-by-Step Guide

Step 1: Register for ClickSend and get API Credentials

Go to ClickSend. Sign up, verify your account, then navigate to your dashboard to find your username and API key.

Visual check: You should see your API key listed under the API settings section.

Common mistake: Copying credentials incorrectly or using the wrong API key type.

Step 2: Set Up the ‘Send SMS’ Node with Authentication

In n8n, open the Send SMS HTTP Request node. Under Authentication, choose HTTP Basic Auth. Input your ClickSend username as the username and the API key as the password.

Set the URL to https://rest.clicksend.com/v3/sms/send, and HTTP method to POST. Add a header with Content-Type: application/json.

The JSON body for the message uses expression syntax to dynamically send SMS text and recipient number:

{
  "messages": [
    {
      "source": "php",
      "body": "{{ $json.sms }}",
      "to": "{{ $json.to }}"
    }
  ]
}

Visual check: Ensure the Basic Auth credentials and JSON body preview are correct.

Common mistake: Missing curly braces or incorrect field references in the JSON body.

Step 3: Configure the ‘Set SMS data’ Node

This node statically assigns values for testing. Set two fields:

  • sms: The message content, for example, “Hi, this is my first message”.
  • to: The recipient’s phone number with international prefix, e.g., “+39xxxxxxxx”.

Visual check: After saving, these should appear as assigned fields in the node’s output.

Common mistake: Forgetting the international ‘+’ prefix or including spaces in the number.

Step 4: Connect the Nodes in Proper Sequence

The workflow sequence is:

  1. Manual Trigger Node (“When clicking ‘Test workflow’”)
  2. Set SMS data
  3. Send SMS

Click and drag connections between output ports and inputs accordingly.

Visual check: The arrows should flow from trigger → set → send nodes.

Common mistake: Skipping the connection or connecting in reverse order causing no message send.

Step 5: Trigger the Workflow Manually

Click the “Execute Workflow” or “Test Workflow” button in n8n.

The manual trigger node activates and passes data through the nodes to send your SMS.

Visual check: Confirm the Send SMS node returns a success response such as HTTP 200.

Common mistake: Running without setting recipient number or API credentials.


Customizations ✏️

  • Change the message content dynamically by connecting other nodes (e.g., a Google Sheets node for personalized messages) and mapping the output to the sms field in Set SMS data.
  • Allow bulk messaging by looping through an array of phone numbers and texts, using the HTTP Request node’s ability to handle multiple calls with split-in-batches node.
  • Integrate error handling by adding a Function node that analyzes the Send SMS response and triggers alerts or retries on failure.
  • Switch to use different authentication methods if ClickSend updates their security, simply by editing the HTTP Request node’s auth settings.
  • Add logging by inserting a Google Sheets or database node to store sent message details including timestamps and statuses.

Troubleshooting 🔧

Problem: “401 Unauthorized” error from Send SMS node

Cause: Incorrect username or API key in Basic Auth.

Solution: Double-check credentials in the HTTP Request node and re-enter them precisely, then save and retest.

Problem: SMS not delivered or incorrect phone number errors

Cause: Phone number missing international prefix or formatted incorrectly.

Solution: Ensure recipient numbers have ‘+’ prefix and no spaces or special characters.

Problem: Workflow runs but no SMS sent, HTTP status other than 200

Cause: Malformed JSON body or headers.

Solution: Verify the JSON structure exactly matches the one provided in the “Send SMS” node, and ensure Content-Type header is set to application/json (no extra spaces).


Pre-Production Checklist ✅

  • Verify your ClickSend account has sufficient credits for sending SMS.
  • Double-check that API credentials match exactly those provided by ClickSend.
  • Test phone numbers with international prefixes and confirm they are deliverable.
  • Run multiple test messages to observe the workflow response and ClickSend dashboard for sent message logs.
  • Save and version your workflow in n8n for rollback if needed.

Deployment Guide

After successful tests, activate the workflow in n8n by switching the toggle to Active.

Set scheduling options if needed or connect with other event-driven workflows.

Monitor the workflow dashboard for any errors or logs.

Adjust or customize workflow as volume or requirements change.


Conclusion

Using this workflow sends SMS worldwide automatically thanks to ClickSend and n8n.

Users save hours of manual work and avoid typos in numbers or messages.

The flow is simple, testable, and expandable for more features.

Start by importing, configuring API keys, testing, then activating for live use.

Expand next by adding personalized messages, bulk sends, or error handling.

Sending SMS the easy way helps reach customers without extra hassle.


Send SMS worldwide with n8n and ClickSend API

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Open the Send SMS HTTP Request node and set authentication to HTTP Basic Auth. Input ClickSend username as username and API key as password.
401 error happens when the Basic Auth username or API key is wrong. Check and re-enter the correct API credentials in the Send SMS node.
Phone numbers must have the international plus sign (+) prefix and no spaces or special characters, for example +391234567890.
Yes. By adding split-in-batches node and looping logic, the workflow can send SMS to many numbers in sequence.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.