Package Information
Available Nodes
Documentation generating…
Documentation
n8n-nodes-sweego
This is an n8n community node. It lets you use Sweego in your n8n workflows.
Sweego is a European platform for sending transactional and marketing emails and SMS through a single API. This package lets you send emails and SMS, react in real time to delivery events, and search your message logs.
Installation · Credentials · Operations · Development
Installation
Follow the community nodes installation guide, then install n8n-nodes-sweego.
Credentials
Sweego API — authenticate with:
- API Key: sent in the
Api-Keyheader on every request. Create it in your Sweego portal, from Home > Email > Continue to credentials (or the drop-down menu in the upper right corner > Credentials), then Create API Key. Copy it right away: it cannot be displayed again. - Client ID: your Sweego client identifier (also called Client UUID).
The credential test calls GET /clients/{clientId}/domains.
Operations
Sweego (action node)
- Send — send a transactional or marketing email. The sender domain must be verified in your Sweego account and allowed for your API key. Optional fields: CC, BCC, reply-to, campaign ID / type / tags, template ID and variables, dry run, open tracking.
SMS
- Send — send a transactional or marketing SMS. Enter the country code in ISO format (
FR,BE,CH...); sending to the US and Canada requires a Toll Free Number. A Sender ID and an SMS channel must be configured in your Sweego account. Test Mode (BAT) counts against your quota and delivers the message to the BAT number configured in your account, not to the recipient.
Log
- Search — search the delivery logs of emails and SMS, filtered by channel, date range, status, sender, recipient or transaction. Supports Return All (the node pages through the results).
- Get — get the details of a message from its ID (
swg_uid).
The node can also be used as an AI agent tool. For any other Sweego route, use the HTTP Request node with the Sweego API predefined credential.
Sweego Trigger (webhook node)
Starts a workflow when a Sweego event occurs. Registration is automatic: on activation the node creates a webhook in your Sweego account through the Sweego webhook API, and removes it on deactivation.
- Add a Sweego Trigger node and set the credential.
- Choose the Channel (email or SMS) and the Events to watch. For email, you can restrict the trigger to some of your verified Domains (all of them when empty).
- Activate the workflow.
Notes:
- Your n8n instance must be reachable from the internet for Sweego to deliver the events. If your endpoint is unavailable, Sweego retries every 5 minutes, up to 20 attempts.
- Email open and click events can arrive up to 10 minutes late and require tracking to be enabled on the sending domain in Sweego. SMS events are delivered instantly.
- Verify Signature (on by default) checks the HMAC-SHA256 signature of each event with the secret of the webhook, and rejects the events that do not match with a
401. - Each event outputs the raw payload, e.g. for an email:
{
"event_type": "email_sent",
"swg_uid": "02-…",
"recipient": "name@example.com",
"domain_from": "example.com",
"timestamp": "…"
}
Development
npm install --ignore-scripts
npm run build # tsc + copy icons into dist/
npm run lint # eslint (n8n-nodes-base ruleset)
npm test # jest, 100% coverage threshold
npm run dev # tsc --watch
To test locally, link the package into your n8n custom nodes folder — see the n8n node development docs. The trigger needs a public URL for n8n (for example with cloudflared tunnel --url http://localhost:5678 and the WEBHOOK_URL environment variable).
Compatibility
Requires n8n with n8nNodesApiVersion 1 and Node.js >= 20.15.