Text.lk icon

Text.lk

Consume Text.lk API

Actions14

SMS → Send

AI-generated

Summary

Sends a single SMS through the Text.lk API by POSTing to /sms/send at https://app.text.lk/api/v3, optionally scheduled for a later time.

Inputs

  • recipient (required) — Destination mobile number in international format without spaces or plus sign, e.g. 94771234567. Sent as body field 'recipient'.
  • sender_id (required) — Approved Text.lk sender ID (alphanumeric, e.g. TEXTLK). Sent as 'sender_id'.
  • type — Message type; only 'Plain' is offered (default). Sent as 'type'.
  • message (required) — SMS text content. Sent as 'message'.
  • schedule_time — Date/time to schedule delivery. Sent as 'schedule_time'; the node doesn't reformat it, so confirm the account timezone and format expected by Text.lk.
  • requestOptions — Node settings for batching (items per batch, interval in ms), ignoring SSL certificate issues, HTTP proxy, and request timeout (default 10000 ms).

Output shape

The parsed JSON response from the Text.lk /sms/send endpoint, one result per input item.

The node uses declarative routing, so the response body is returned as-is; its exact fields aren't defined in the node. Requires the textDotLkApi credential. HTTP errors fail the item unless Continue On Fail is enabled.

Examples

Example 1: Send an order confirmation text to a customer immediately

Recipient = {{$json.phone}}, Sender ID = TEXTLK, Type = Plain, Message = 'Your order has shipped', Schedule Time empty.

Example 2: Schedule a reminder SMS for later

Set Recipient, Sender ID, Message, and Schedule Time to a future date/time.

Example 3: Send to many input items without hitting rate limits

Under Request Options add Batching: Items per Batch = 10, Batch Interval = 2000 ms.

Links

Discussion