Skip to main content

Send SMS

Send a message to a subscriber of your service: a notification, a confirmation, a piece of content.

POST /api/sp/v1/sms

What to know before you use it​

This endpoint has two paths, and they are the same endpoint. POST /api/sp/v1/dcb/sms came first and still works exactly as it always has. Nothing about it is deprecated and nothing needs changing. /sms is its current name, because the old one reads as DCB only and the endpoint never was: it carries MT and MO services too. New integrations should use /sms.

The two paths share one idempotency namespace

A spTransactionId you have already used on POST /api/sp/v1/dcb/sms counts as a duplicate on POST /api/sp/v1/sms, and the reverse. This is deliberate. If each path kept its own record, a client retrying a timed-out call against the other path would send a second message.

To reach every subscriber at once, this is the wrong endpoint. One call here is one message to one number. Scheduling an item for your whole subscriber base is Add Content, which charges per subscriber and is a separate ability.

A long message is delivered, not refused. It goes as several parts that the handset joins back into one. Length costs you nothing here, because this endpoint is zero-rated. See Send an SMS.

Send SMS does not charge the subscriber. Messages sent through this endpoint go out on a zero-rated account whatever the short code's price is, so your own transactional traffic, a login code or a confirmation, costs the person receiving it nothing. Charging per message is what Add Content does, and that is the difference between the two.

Who you may message is set per grant. By default a grant reaches only people subscribed to that service, and anyone else is refused NOT_SUBSCRIBED. Ask the Tornet operations team if your integration needs to message non-subscribers; it is their decision to make per service, not something you can switch on.

The service's permitted days of the week still apply (CONTENT_NOT_ALLOWED_TODAY).

Legacy field names are refused rather than ignored. If you are migrating, msg and alphanumeric will fail validation on purpose.

Delivery is not the same as acceptance. A success means we accepted the message for sending, not that it arrived. We do not currently report what happened to it afterwards: DataSync has no event for a message being sent or delivered.