Add a content item
Schedules one item for every active subscriber of your service.
POST /api/sp/v1/content
Request
| Field | Type | Notes |
|---|---|---|
serviceId | integer | The service whose subscribers receive it. |
content | string | The text. Plain UTF-8, not hex. Up to 4,000 characters, but the single-part limit below still applies. |
spTransactionId | string | Yours, unique per item. Reuse it on a retry. |
sendAt | string | Optional. ISO 8601. Defaults to one hour from now. |
Response
{
"requestId": "01JB2K9WQ4X7YH3M8N5P6R7T8V",
"code": "OK",
"data": {
"contentItemId": "5417",
"sendAt": "2026-10-01T09:00:00+00:00",
"willSend": true,
"warning": null
}
}
| Field | Notes |
|---|---|
contentItemId | Ours. Quote it in a support request about a specific item. |
sendAt | When we will send it, after applying the default and your timezone. |
willSend | Whether the scheduler expects to send it. Check this. |
warning | Plain-language reason when willSend is false, otherwise null. |
willSend: false is a success you need to read
The call returns OK and the item is saved, but your service's rate cap for that day is already
met, so the scheduler will skip it. Nothing is charged and nothing is sent.
It is reported this way rather than as a refusal because the cap is a property of the day, not of
your request: an item saved now may be exactly what you want if an earlier item is pulled. An
integration that ignores willSend will believe it scheduled content that never goes out.
sendAt, and the timezone rule
Optional. Omit it and the item is scheduled one hour ahead, which is what the legacy platform did in practice.
It must fall between 30 minutes and 12 hours from now, or the call returns
CONTENT_SEND_AT_OUT_OF_RANGE. The lower bound exists so a mistake is recoverable: content charges
every active subscriber the moment it goes, and a push you can still pull costs nothing.
An ISO 8601 string carrying an offset (2026-10-01T09:00:00+03:00) is honoured exactly as written.
One without an offset (2026-10-01T09:00:00) is read in Baghdad time, because "09:00" from a
provider in Erbil means 09:00 there. If your system stores UTC, send the offset: a bare UTC
timestamp will be read three hours earlier than you meant.
Length
The same single-part rule as Send SMS: 160 characters for English, 70 for
Arabic or Kurdish, and one Arabic character anywhere moves the whole message to 70. Over the
limit returns CONTENT_TOO_LONG. A service may be configured lower, never higher.
content accepts up to 4,000 characters at validation, which is a guard against runaway payloads
rather than a promise: the service's own limit is what decides whether the item is accepted.
Legacy fields are refused, not ignored
msg, alphanumeric and msisdn are prohibited. Each fails validation with a reason.
On the legacy platform this was GET /vms/API/VMS-Content/actions/addContent, with credentials in
the query string and the body as uppercase UCS-2 hex. None of that carries over. Credentials belong
in a bearer token rather than a URL that lands in access logs and proxy history, and the body is
plain UTF-8.
msisdn is refused rather than accepted as a filter. Sending one number here would look like a
targeted send and would not be one. To message a single subscriber, use
Send SMS.
A legacy client hex-encodes as UCS-2 unconditionally. Accepted silently, your text would arrive as
mojibake to every subscriber, charged. msg is prohibited so the first call fails loudly instead.
Refusals
| Code | Meaning |
|---|---|
CONTENT_NOT_SUPPORTED | The service is not MT. Content upload is for MT services only. |
CONTENT_TOO_LONG | Over the single-part limit for its script. |
CONTENT_SEND_AT_OUT_OF_RANGE | sendAt is under 30 minutes or over 12 hours away. |
CONTENT_NOT_ALLOWED_TODAY | The service does not send content on the day it would go. |
DUPLICATE_TRANSACTION_ID | This spTransactionId was already used. |
Full list: Error codes.