Idempotent by design
Every send carries an Idempotency-Key. Replays return the original response byte for byte.
Send one message per call, get a message ID back right away, and follow every status change by API or signed webhooks.
Pick only the scopes it needs, and optionally an IP allowlist and an expiry date.
Retry safely after a timeout: the same key never sends or charges twice.
Query the message or subscribe to webhook events from accepted to delivered.
Every send carries an Idempotency-Key. Replays return the original response byte for byte.
Per-key scopes, IP allowlists and expiry. Keys are shown once and stored only as a hash.
HMAC-signed events, at-least-once delivery, ordered by event_sequence, replayable from the console.
Accepted, submitted and delivered are separate facts. Late receipts correct the status and tell you.
Estimate encoding, segments and price before sending, or cap them with max_unit_price and max_segments.
Send approved templates with variables, and use registered sender IDs where countries require them.
Routes are chosen per country and operator, with automatic failover when a route rejects a message.
Separate keys, messages and webhooks per project; invite teammates with fixed roles.
curl https://api.lemsg.com/v1/messages \
-H "Authorization: Bearer $LEMSG_API_KEY" \
-H "Idempotency-Key: login-7f3a9c" \
-H "Content-Type: application/json" \
-d '{"to": "+6591234567", "text": "Your code is 482913"}'A 202 means the message was accepted and its cost reserved — not that it was delivered.
No. 202 means we accepted the message and reserved its cost. Delivery is confirmed only by the delivered status, which you can query or receive as a webhook.
Send the same request again with the same Idempotency-Key. If the first one went through you get its original response; nothing is sent or charged twice.
Per segment. A segment holds 160 GSM-7 characters (153 in multipart messages) or 70 Unicode characters (67 in multipart). A message can be up to 10 segments.
Yes. The OpenAPI file at lemsg.com/openapi.yaml describes every endpoint, field and error code, so you can generate a client in your language.
One call sends a one-time code by SMS, another checks what your user typed. You never generate, store or see the code.
Learn moreOne OTP to the number, then the list of bank accounts held under it: bank name, masked account number and account type. No paperwork, no document upload.
Learn moreUpload a list, schedule it in your customers’ time zone and set a budget. Campaigns pause before they overspend and respect local promotional hours.
Learn moreAlready running an SMPP client? Bind to smpp.lemsg.com and send with submit_sm. Billing, opt-outs and template rules are the same as for the REST API.
Learn moreCreate an account, top up and send — pay only for what you use.