Skip to main content

Add Content, and Send SMS gains a shorter path

Two changes to the SP API. POST /api/sp/v1/content schedules one content item for every active subscriber of a service, and POST /api/sp/v1/sms is now the name of the Send SMS endpoint you already have at /dcb/sms.

Add Content​

It schedules, it does not send. There is no msisdn in the request: one accepted item becomes one message per active subscriber at its send time, and each of those is charged. A service with 4,000 subscribers turns a single call into 4,000 charged messages.

That is the whole difference from Send SMS, and the two carry separate abilities for it. Having send_sms granted does not grant add_content.

POST /api/sp/v1/content
{ "serviceId": 42, "content": "Today rate: 1 USD = 1310 IQD", "spTransactionId": "your-id-001" }

Full contract: Add Content.

Three things worth reading before you build it. sendAt is optional and defaults to one hour ahead, and it must land between 30 minutes and 12 hours out. A timestamp with no UTC offset is read as Baghdad time. And a success carries willSend, which is false when your service's rate cap for that day is already met: the item is saved, nothing is charged, and nothing goes out.

Content upload is for MT services. Anything else, DCB or MO, returns CONTENT_NOT_SUPPORTED.

Corrected 29 September

This entry first said MT and MO. Content upload is MT only; the wider set describes what the broadcaster can deliver, not what this endpoint accepts. No MO service ever accepted an upload through it.

If you are migrating from legacy addContent, the shape has changed rather than moved: POST with a bearer token instead of credentials in the query string, and plain UTF-8 instead of uppercase UCS-2 hex. msg is prohibited, so a hex body fails on the first call rather than arriving as mojibake to your whole subscriber base.

Send SMS is now also at /sms​

POST /api/sp/v1/dcb/sms and POST /api/sp/v1/sms are the same endpoint. The older path came first and reads as DCB only, which it never was: it carries MT and MO services too, so the name was the misleading part rather than the behaviour.

Nothing is deprecated and nothing needs changing. Both paths stay live. New integrations should use /sms.

The two paths share one idempotency namespace

A spTransactionId you have already used on one path counts as a duplicate on the other. 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 and, on a billed short code, take a second charge.

New error codes​

CodeHTTPWhen
CONTENT_NOT_SUPPORTED403The service is DCB, which sends renewal messages rather than content.
CONTENT_SEND_AT_OUT_OF_RANGE403sendAt is under 30 minutes or over 12 hours away.

Both are additive. Existing integrations see them only on the new endpoint.