Send SMS
mocean.send_sms
ActionVoice & SMSconnection required
Calls the Mocean API with the connection's credentials.
Send one text message to up to 500 recipient numbers.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Mocean
- Secret shape
- {"api_token": "…"} — a Mocean API token, or {"api_key": "…", "api_secret": "…"}
- Config it needs
- base_url, sender_id, brand
- Resolved by
- config.connection_id, else node.connection_id
Configuration
7 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
to Recipient number in international format, country code first and no plus sign; separate several numbers with commas. | string | Yes | — | — | 60123456789 |
text The message body; every recipient in this request receives it unchanged. | string | Yes | — | — | Your order has shipped. |
sender_id Sender ID shown to the recipient; overrides the default on the connection. | string | No | — | — | MOCEAN |
coding Character coding to request: 1 for 7-bit GSM, 2 for 8-bit binary, 3 for UCS2. Leave blank to let Mocean choose. | string | No | — | one of "1", "2", "3" | — |
dlr_url URL Mocean should PUT the delivery report to; setting it turns delivery reports on for this message. | string | No | — | url format | — |
schedule Send the message later, as YYYY-MM-DD hh:mm:ss in Malaysia time (GMT+8); the hour needs a leading zero. | string | No | — | — | 2026-02-11 23:30:00 |
validity How long the message stays valid for delivery, in seconds. | number | No | — | ≥ 1 | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"schedule": "2026-02-11 23:30:00",
"sender_id": "MOCEAN",
"text": "Your order has shipped.",
"to": "60123456789"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
messages One entry per recipient, each with its status, receiver and msgid. | array | — |
count How many recipient entries Mocean returned. | number | — |
msgids The message ids, in the same order; feed one to mocean.get_message_status. | array | — |
{
"count": 0,
"messages": [],
"msgids": []
}See Send SMS run in a workflow.
In a technical demo we add the Mocean connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.