SMS API
Send SMS over HTTP — one message, a batch, or a saved template — optionally with a shortened link to a landing page or survey, then track what happened to it.
Recipient and MobileNo are numeric: send 50680000000, not "+506 8000 0000". Anything with a +, a space or a dash is not a number and will not bind.
A message over 160 GSM-7 characters — or 70 if it contains Unicode — is split into multiple parts and concatenated on the handset. Each part is billed separately. A single accented character can push a message into Unicode and quarter your per-message length, so check the encoding before assuming a body fits.
A successful send returns 202 Accepted and a QueueId. That means we have taken the message, not that it reached the handset. Delivery outcome comes from Check delivery status.
data.SendType is Immediate when the SMS goes out now, and Scheduled with a ScheduleDateTime; ScheduledDateTime and UtcOffset then give the time and the message spells it out. A scheduled SMS waits until then, so it will not arrive straight after a test.
Copy or download this guide as Markdown to paste into an AI assistant for help integrating against it.
Environment
You are reading the guide for the host that served this page. The badge in the header and every example below already point at it — nothing to substitute by hand, and no other environment's addresses appear on this page.
| Property | Value |
|---|---|
| Environment | |
| Base URL | https:// |
| All paths | are under /v1/sms |
Authentication
Every endpoint needs a bearer token, and this host does not issue one. Exchange your credentials at the Authenticate API — on this environment that is https:// — then send what it returns as Authorization: Bearer <access_ on each request here.
Credentials embedded in a browser page or a mobile app are published credentials — anyone can read them and send messages billed to you. Request the token from your own backend and never ship it to a client.
Exchanges your credentials for an access token.
Tokens last 3600 seconds by default. Request a new one when it expires — there is no separate refresh call, though the response does include a refresh_token. Full detail is on the Authenticate guide at https://.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | The account's username, usually an email address. |
password | string | Yes | The account's password. Server-side only. |
privatetoken | string | Yes | Your account's private token, from the portal's configuration section. Note the spelling — one word, all lower case. |
validity | integer | No | How long the token should last, in seconds. Defaults to 3600. |
Responses
| Status | Meaning |
|---|---|
200 | Returns access_token, refresh_token, token_type and expires_in. |
400 | The body was missing or a required field was absent. |
401 | The username, password or private token was not accepted. |
# 1. get a token from the Authenticate host
ACCESS_TOKEN=$(curl -s -X POST https://authenticate-dev.jirafix.net/v1/token \
-H "Content-Type: application/json" \
-d '{"username":"you@yourcompany.com","password":"'"$OLANZO_PASSWORD"'","privatetoken":"'"$OLANZO_PRIVATE_TOKEN"'","validity":3600}' \
| jq -r .access_token)
# 2. spend it here
curl -X GET "https://sms-dev.jirafix.net/v1/sms/lists" \
-H "Authorization: Bearer $ACCESS_TOKEN"
using var auth = new HttpClient { BaseAddress = new Uri("https://authenticate-dev.jirafix.net") };
var tokenResponse = await auth.PostAsJsonAsync("/v1/token", new
{
username = "you@yourcompany.com",
password = Environment.GetEnvironmentVariable("OLANZO_PASSWORD"),
privatetoken = Environment.GetEnvironmentVariable("OLANZO_PRIVATE_TOKEN"),
validity = 3600,
});
// the property is access_token, not accessToken
var payload = await tokenResponse.Content.ReadFromJsonAsync<JsonElement>();
var token = payload.GetProperty("access_token").GetString();
using var api = new HttpClient { BaseAddress = new Uri("https://sms-dev.jirafix.net") };
api.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", token);
var response = await api.SendAsync(
new HttpRequestMessage(HttpMethod.Get, "/v1/sms/lists"));
// 1. get a token from the Authenticate host
const tokenResponse = await fetch("https://authenticate-dev.jirafix.net/v1/token", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
username: "you@yourcompany.com",
password: process.env.OLANZO_PASSWORD,
privatetoken: process.env.OLANZO_PRIVATE_TOKEN,
validity: 3600,
}),
});
// note the underscore — accessToken is undefined
const { access_token } = await tokenResponse.json();
// 2. spend it here
const response = await fetch("https://sms-dev.jirafix.net/v1/sms/lists", {
method: "GET",
headers: { Authorization: `Bearer ${access_token}` },
});
import os, requests
# 1. get a token from the Authenticate host
token_response = requests.post(
"https://authenticate-dev.jirafix.net/v1/token",
json={
"username": "you@yourcompany.com",
"password": os.environ["OLANZO_PASSWORD"],
"privatetoken": os.environ["OLANZO_PRIVATE_TOKEN"],
"validity": 3600,
},
)
# note the underscore — "accessToken" raises KeyError
access_token = token_response.json()["access_token"]
# 2. spend it here
response = requests.get(
"https://sms-dev.jirafix.net/v1/sms/lists",
headers={"Authorization": f"Bearer {access_token}"},
)
200 OK
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 3600
}
The fields are access_token, refresh_token, token_type and expires_in — not accessToken or expiresIn. Reading the camelCase spelling gives you nothing, with no error to explain it.
A token carries the API domains it is allowed to reach. One issued by a different environment's Authenticate host is rejected here with a 401 that reads like bad credentials, so check the pair before you check your password: this page is https:// and its Authenticate host is https://.
Send your first message
Four fields and you are done. The response gives you a QueueId to track the send.
curl -X POST https://sms-dev.jirafix.net/v1/sms/send \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"Recipient": 50680000000,
"SenderName": "YOURBRAND",
"IsBodyEncrypted": false,
"Body": "Your order is confirmed."
}'
202 Accepted
{
"status": "Success",
"message": "Successfully accepted.",
"data": {
"QueueId": "9f1c7d2e-4b3a-4c1d-9e8f-2a7b6c5d4e3f",
"QueuedTimestamp": 1755590400000,
"SendType": "Immediate",
"ScheduledDateTime": null,
"UtcOffset": null
}
}
202 Accepted
{
"status": "Success",
"message": "Scheduled. This SMS will be sent on 2026-09-10 at 14:30 (UTC-06:00).",
"data": {
"QueueId": "9f1c7d2e-4b3a-4c1d-9e8f-2a7b6c5d4e3f",
"QueuedTimestamp": 1755590400000,
"SendType": "Scheduled",
"ScheduledDateTime": "2026-09-10 14:30",
"UtcOffset": "-06:00"
}
}
Sending messages
| Use this | When | Recipients |
|---|---|---|
/send | One person, plain text | One |
/single | One person, with a shortened link to a landing page or survey | One |
/batch | A list or segment, or up to 1,000 numbers you supply | Up to 1,000 |
/predefinedsms | A template already built in the portal | One or many |
Send one message
Sends one plain-text message to one number.
The right default for order confirmations, one-time codes and alerts. If you need a tracked link, use /single instead.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Recipient | number | Yes | The destination number, in full international form as a number — 50680000000. |
SenderName | string | Yes | The sender ID shown on the handset. 5 to 11 characters. Outside that range the request is rejected. |
IsBodyEncrypted | boolean | Yes | Send false unless you have specifically agreed encrypted bodies with us. It is not optional — include it. |
Body | string | Yes | The message text. See the note on length and billing above — this is plain text, not Base64. |
Personalization | array | No | Values substituted into the body. Omit if you do not personalise. |
ScheduleDateTime | date-time | No | Send later instead of now. Format yyyy-MM-dd HH:mm — seconds are dropped, and a time in the past is rejected. The 202 then says Scheduled and repeats the time with its UtcOffset. |
WebHookUrl | string | No | We post delivery reports here as they happen, so you do not have to poll. |
Responses
| Status | Meaning |
|---|---|
202 | Accepted and queued. Returns QueueId, QueuedTimestamp and SendType: Immediate, or Scheduled with ScheduledDateTime and UtcOffset. |
400 | The request failed field validation — a required field missing (a missing Recipient number on /send binds as zero and is a 422, and a batch's missing IsBodyEncrypted defaults to false), a required text field empty or only whitespace, a sender name outside 5–11 characters, or a value of the wrong type such as a quoted phone number. The body names the offending fields. Rules applied after the request binds come back as 422 instead. |
401 | Missing, expired or invalid bearer token. |
422 | A rule rejected the request, or the message could not be queued — see Errors. The body carries "status": "Failed", a message naming the problem, and data with any offending ids. A rejected request sends nothing, and sent again with nothing changed it fails the same way, so fix what the message names first, in the request or in the account's setup in the portal. Retry only when the message starts Message queue failed or asks you to try again in a few minutes. |
curl -X POST https://sms-dev.jirafix.net/v1/sms/send \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"Recipient": 50680000000,
"SenderName": "YOURBRAND",
"IsBodyEncrypted": false,
"Body": "Hola {{firstName}}, your code is 4821.",
"PersonalizationSubstitutionTags": [
{ "TagName": "firstName", "TagValue": "María" }
],
"ScheduleDateTime": "2026-09-10 14:30",
"WebHookUrl": "https://yourcompany.com/webhooks/sms"
}'
Send with a tracked link
Sends one message carrying a shortened link to a landing page or survey.
Find ids with List landing pages or List surveys.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Recipient | number | Yes | The destination number as a number. Must be greater than 99999: a number from 1 to 99999 fails validation with 400, and zero, negative or missing is a 422. |
SenderName | string | Yes | The sender ID shown on the handset. 5 to 11 characters. Outside that range the request is rejected. |
IsBodyEncrypted | boolean | Yes | Send false unless you have specifically agreed encrypted bodies with us. It is not optional — include it. |
Body | string | Yes | The message text. See the note on length and billing above — this is plain text, not Base64. |
LandingPageId | guid | No | The landing page or survey to link to. |
Shortner.ShortnerUrl | string | No | The short domain to build the link on. If you send a Shortner object at all, this field inside it is required. |
Shortner.IsUniqueUrl | boolean | No | Whether each recipient gets their own link, so clicks can be attributed individually. |
UnsubscribeContent | string | No | Opt-out text appended to the message. |
ScheduleDateTime | date-time | No | Send later instead of now. Format yyyy-MM-dd HH:mm — seconds are dropped, and a time in the past is rejected. The 202 then says Scheduled and repeats the time with its UtcOffset. |
WebHookUrl | string | No | We post delivery reports here as they happen, so you do not have to poll. |
Responses
| Status | Meaning |
|---|---|
202 | Accepted and queued. Returns QueueId, QueuedTimestamp and SendType: Immediate, or Scheduled with ScheduledDateTime and UtcOffset. |
400 | The request failed field validation — a required field missing (except Recipient, below), a required text field empty or only whitespace, a sender name outside 5–11 characters, a value of the wrong type, or a recipient number that is from 1 to 99999 (zero, negative or missing is a 422). The body names the offending fields. This endpoint checks the recipient specifically; the others do not. |
401 | Missing, expired or invalid bearer token. |
422 | A rule rejected the request, or the message could not be queued — see Errors. The body carries "status": "Failed", a message naming the problem, and data with any offending ids. A rejected request sends nothing, and sent again with nothing changed it fails the same way, so fix what the message names first, in the request or in the account's setup in the portal. Retry only when the message starts Message queue failed or asks you to try again in a few minutes. |
curl -X POST https://sms-dev.jirafix.net/v1/sms/single \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"Recipient": 50680000000,
"SenderName": "YOURBRAND",
"IsBodyEncrypted": false,
"Body": "Tell us how we did:",
"UnsubscribeContent": "Reply STOP to opt out.",
"LandingPageId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"Shortner": { "ShortnerUrl": "go.yourbrand.cr", "IsUniqueUrl": true },
"ScheduleDateTime": "2026-09-10 14:30",
"WebHookUrl": "https://yourcompany.com/webhooks/sms"
}'
400 Bad Request
{
"error": { "Recipient": ["The Recipient must be a valid number"] },
"Status": 400,
"Title": "One or more validation errors occurred.",
"TraceId": "1f0c..."
}
Send a batch
Sends to a saved list, or to numbers you supply — each personalised individually.
Give at least one of ListId, Include or a Recipients array. With none of them, the request is rejected. To send to part of a list, see Send to segments. Unlike the Email API, the sending fields sit at the top level here — there is no wrapper object.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ListId | array | No | Subscriber lists to send to, whole. Required unless you supply Include or Recipients. |
Include | array | No | Segments to send to: only their contacts, not their whole list. Combine with ListId to add whole lists too, but never with a segment's own list. See Send to segments. |
Exclude | array | No | Segments whose contacts must not get this message. Removes them from the whole send, matched by mobile number — never from Recipients. Each segment's list must be in ListId or be the list of an included segment. |
Recipients | array | No | Up to 1,000 per call. Each entry needs a numeric MobileNo, and every number must be unique. Required unless you supply a ListId. |
Recipients[]. | number | No | The destination number for that entry, as a number. |
Recipients[]. | array | No | Per-recipient values substituted into the body. |
SenderName | string | Yes | The sender ID shown on the handset. 5 to 11 characters. Outside that range the request is rejected. |
IsBodyEncrypted | boolean | Yes | Send false unless you have specifically agreed encrypted bodies with us. It is not optional — include it. |
Body | string | Yes | The message text. See the note on length and billing above — this is plain text, not Base64. |
LandingPageId | guid | No | Link the batch to a landing page or survey. |
Shortner.ShortnerUrl | string | No | Required if you send a Shortner object. |
ScheduleDateTime | date-time | No | Send later instead of now. Format yyyy-MM-dd HH:mm — seconds are dropped, and a time in the past is rejected. The 202 then says Scheduled and repeats the time with its UtcOffset. |
WebHookUrl | string | No | We post delivery reports here as they happen, so you do not have to poll. |
Responses
| Status | Meaning |
|---|---|
202 | Accepted and queued. Returns QueueId, QueuedTimestamp and SendType: Immediate, or Scheduled with ScheduledDateTime and UtcOffset. |
400 | The request failed field validation — a required field missing (a missing Recipient number on /send binds as zero and is a 422, and a batch's missing IsBodyEncrypted defaults to false), a required text field empty or only whitespace, a sender name outside 5–11 characters, or a value of the wrong type such as a quoted phone number. The body names the offending fields. Rules applied after the request binds come back as 422 instead. |
401 | Missing, expired or invalid bearer token. |
422 | A rule rejected the request, or the message could not be queued — see Errors. The body carries "status": "Failed", a message naming the problem, and data with any offending ids. A rejected request sends nothing, and sent again with nothing changed it fails the same way, so fix what the message names first, in the request or in the account's setup in the portal. Retry only when the message starts Message queue failed or asks you to try again in a few minutes. |
curl -X POST https://sms-dev.jirafix.net/v1/sms/batch \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"SenderName": "YOURBRAND",
"IsBodyEncrypted": false,
"Body": "Hola {{firstName}}, your statement is ready:",
"LandingPageId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"Shortner": { "ShortnerUrl": "go.yourbrand.cr", "IsUniqueUrl": true },
"ScheduleDateTime": "2026-09-10 07:00",
"WebHookUrl": "https://yourcompany.com/webhooks/sms",
"Recipients": [
{
"MobileNo": 50680000000,
"PersonalizationSubstitutionTags": [
{ "TagName": "firstName", "TagValue": "María" }
]
},
{ "MobileNo": 50688886666 }
]
}'
# Same endpoint, addressed to saved lists instead of an explicit Recipients array.
curl -X POST https://sms-dev.jirafix.net/v1/sms/batch \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"SenderName": "YOURBRAND",
"IsBodyEncrypted": false,
"Body": "Your statement is ready.",
"ListId": ["3fa85f64-5717-4562-b3fc-2c963f66afa6"]
}'
# Same endpoint, addressed to the contacts in one segment of a list, not the whole list.
curl -X POST https://sms-dev.jirafix.net/v1/sms/batch \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"SenderName": "YOURBRAND",
"IsBodyEncrypted": false,
"Body": "Your statement is ready.",
"IncludeSegmentationId": ["9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"]
}'
# Same endpoint: the whole list, except the contacts in one of its segments.
curl -X POST https://sms-dev.jirafix.net/v1/sms/batch \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"SenderName": "YOURBRAND",
"IsBodyEncrypted": false,
"Body": "Your statement is ready.",
"ListId": ["3fa85f64-5717-4562-b3fc-2c963f66afa6"],
"ExcludeSegmentationId": ["9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"]
}'
Send a saved template
Sends a template already built in the portal.
The template owns the body and sender, so you supply only who it goes to. Find ids with List trigger templates.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
PredefinedTemplateId | string | Yes | The template to send, e.g. TSMS-899. |
Recipients | array | No | Each entry needs a numeric MobileNo. Required unless you supply a ListId or Include. |
Recipients[]. | number | No | The destination number for that entry, as a number. |
ListId | array | No | Send to saved lists, whole, instead of explicit numbers. |
Include | array | No | Segments to send to: only their contacts, not their whole list. Combine with ListId to add whole lists too, but never with a segment's own list. See Send to segments. |
Exclude | array | No | Segments whose contacts must not get this message. Removes them from the whole send, matched by mobile number — never from Recipients. Each segment's list must be in ListId or be the list of an included segment. |
ScheduleDateTime | date-time | No | Send later instead of now. Format yyyy-MM-dd HH:mm — seconds are dropped, and a time in the past is rejected. The 202 then says Scheduled and repeats the time with its UtcOffset. |
WebHookUrl | string | No | We post delivery reports here as they happen, so you do not have to poll. |
Responses
| Status | Meaning |
|---|---|
202 | Accepted and queued. Returns QueueId, QueuedTimestamp and SendType: Immediate, or Scheduled with ScheduledDateTime and UtcOffset. |
400 | The request failed field validation — a required field missing (a missing Recipient number on /send binds as zero and is a 422, and a batch's missing IsBodyEncrypted defaults to false), a required text field empty or only whitespace, a sender name outside 5–11 characters, or a value of the wrong type such as a quoted phone number. The body names the offending fields. Rules applied after the request binds come back as 422 instead. |
401 | Missing, expired or invalid bearer token. |
422 | A rule rejected the request, or the message could not be queued — see Errors. The body carries "status": "Failed", a message naming the problem, and data with any offending ids. A rejected request sends nothing, and sent again with nothing changed it fails the same way, so fix what the message names first, in the request or in the account's setup in the portal. Retry only when the message starts Message queue failed or asks you to try again in a few minutes. |
curl -X POST https://sms-dev.jirafix.net/v1/sms/predefinedsms \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"PredefinedTemplateId": "TSMS-899",
"Recipients": [{ "MobileNo": 50680000000 }],
"ScheduleDateTime": "2026-09-10 10:00",
"WebHookUrl": "https://yourcompany.com/webhooks/sms"
}'
# Same endpoint, addressed to saved lists instead of explicit numbers.
curl -X POST https://sms-dev.jirafix.net/v1/sms/predefinedsms \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"PredefinedTemplateId": "TSMS-899",
"ListId": ["3fa85f64-5717-4562-b3fc-2c963f66afa6"]
}'
# Same endpoint, addressed to the contacts in one segment of a list, not the whole list.
curl -X POST https://sms-dev.jirafix.net/v1/sms/predefinedsms \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"PredefinedTemplateId": "TSMS-899",
"IncludeSegmentationId": ["9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"]
}'
# Same endpoint: the whole list, except the contacts in one of its segments.
curl -X POST https://sms-dev.jirafix.net/v1/sms/predefinedsms \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{
"PredefinedTemplateId": "TSMS-899",
"ListId": ["3fa85f64-5717-4562-b3fc-2c963f66afa6"],
"ExcludeSegmentationId": ["9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"]
}'
Send to segments
/batch and /predefinedsms can send to part of a list instead of all of it. A segment is a saved filter on one list; read a list's segments, and their ids, with GET / on the CRM API. You send only the segment's id — we look up its list and type.
| To send to | Give |
|---|---|
| Whole lists | ListId — as before |
| Only the contacts in some segments | Include |
| Whole lists plus segments of other lists | ListId and Include |
| A list except the contacts in some of its segments | ListId and Exclude |
| A segment except the contacts in another segment of the same list | Include and Exclude |
A contact in an excluded segment is removed from everything the request sends to, matched by mobile number — not only from the excluded segment's own list. If the same number is on a second list in ListId, it is left out of that list too. Explicit Recipients are never excluded: a number you list there always gets the message. A contact in two included segments, or in a list and a segment, gets one message.
Rules — checked before anything is queued. Any failure answers 422 and nothing is sent.
| Rule | Why |
|---|---|
| Each segment id must be one of your own segments, not a list id and not deleted. | Offending ids come back in In, like InValidListIds. |
| A segment must have been created by the account owner, not by a team member or staff login. | Sends can only use the account owner's segments. A segment another login created is refused with its own message; ask the account owner to create it. |
| A segment the send engine would skip is refused — usually one whose list has no contact subscribed to SMS marketing. | A skipped exclusion would not be applied to the other lists of the send, so the request is refused instead. |
An included segment's list must not also be in ListId. | The whole list would go out and the segment would mean nothing. |
Exclude needs a ListId or Include. | There must be something to remove contacts from. Recipients do not count. |
An excluded segment's list must be in ListId, or be the list of an included segment. | Excluding from a list you are not sending to has no meaning. |
| The same segment cannot be in both fields. | It would be added and removed at once. |
| A segment must have been counted, and an included segment must have contacts with a mobile number. | A segment is counted within a few minutes of being created or edited. An empty excluded segment is fine: it removes nobody. |
Segments are checked when you make the request and again when the send is queued. A send with a ScheduleDateTime is not checked again at its scheduled time: if an excluded segment is deleted, or its saved count drops to 0, in between, the exclusion is skipped and its contacts get the message. Do not delete or rebuild a segment that a scheduled send excludes.
Segment targeting is switched on environment by environment. Where it is not on yet, a request that uses Include or Exclude answers 422 saying so, and nothing is sent.
Check delivery status
Take the QueueId from any send and ask what happened to it. This is the only authoritative answer on delivery.
Reads the outcome of a previously queued send.
Details counts recipients by stage — Total, Queued, Submitted, Delivered and Failed — so a batch can be tracked as it drains.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | guid | Yes | The QueueId returned by the send. |
Responses
| Status | Meaning |
|---|---|
200 | Current status, with a per-stage recipient breakdown in Details. |
400 | No send matches that id. Note this is a 400, not a 404. |
401 | Missing, expired or invalid bearer token. |
curl -X GET https://sms-dev.jirafix.net/v1/sms/9f1c7d2e-4b3a-4c1d-9e8f-2a7b6c5d4e3f/status \ -H "Authorization: Bearer <your-token>"
200 OK
{
"QueueId": "9f1c7d2e-4b3a-4c1d-9e8f-2a7b6c5d4e3f",
"Status": "Completed",
"Message": "Sent",
"Details": {
"Total": 2,
"Queued": 0,
"Submitted": 2,
"Delivered": 2,
"Failed": 0
}
}
If the account has run out of credit the status reads InSufficient Fund and a Balance object is included. Top up and send again — the original send does not resume on its own.
Lists and contact counts
Lists the subscriber lists reachable by SMS, with contact counts.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
excludeCount | boolean | No | Set to true to skip counting, which returns faster on large lists. |
Responses
| Status | Meaning |
|---|---|
200 | The lists, with counts unless you excluded them. |
401 | Missing, expired or invalid bearer token. |
curl -X GET "https://sms-dev.jirafix.net/v1/sms/lists?excludeCount=true" \ -H "Authorization: Bearer <your-token>"
Contact count and segment breakdown for one subscriber list.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
listId | guid | Yes | The subscriber list to count. |
Responses
| Status | Meaning |
|---|---|
200 | The count and segment breakdown. An unknown list also answers 200, with nothing in it — check the payload, not the status code. |
401 | Missing, expired or invalid bearer token. |
curl -X GET https://sms-dev.jirafix.net/v1/sms/3fa85f64-5717-4562-b3fc-2c963f66afa6/contacts/count \ -H "Authorization: Bearer <your-token>"
Landing pages
Lists the landing pages you can link to from a message.
The ids here are what /single and /batch accept as LandingPageId.
Responses
| Status | Meaning |
|---|---|
200 | The available landing pages. |
400 | The request could not be read. |
401 | Missing, expired or invalid bearer token. |
curl -X GET https://sms-dev.jirafix.net/v1/sms/landingpages \ -H "Authorization: Bearer <your-token>"
Surveys
Lists the surveys you can link to from a message.
Responses
| Status | Meaning |
|---|---|
200 | The available surveys. |
400 | The request could not be read. |
401 | Missing, expired or invalid bearer token. |
curl -X GET https://sms-dev.jirafix.net/v1/sms/surveys \ -H "Authorization: Bearer <your-token>"
Trigger templates
Lists the saved templates you can send.
The ids here are what /predefinedsms expects.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
isCalledFromSignUp | boolean | No | Narrows the list to sign-up templates. |
Responses
| Status | Meaning |
|---|---|
200 | The available templates. |
401 | Missing, expired or invalid bearer token. |
curl -X GET "https://sms-dev.jirafix.net/v1/sms/trigger-templates?isCalledFromSignUp=false" \ -H "Authorization: Bearer <your-token>"
Errors
A 422 means the request was understood and a rule rejected it, or, rarely, that the message could not be queued. A rejected request sends nothing. The body always has the same shape: { "title": "Unprocessable. The message says which rule, and data carries any offending ids, such as InValidListIds or In; a key with nothing to report can be present with a null value.
A 400 comes from binding and field validation, before the request is really looked at: a missing required field (except a missing Recipient number, which binds as zero and is a 422, and a batch's missing IsBodyEncrypted, which defaults to false), a required text field that is empty or only whitespace (a body that is only whitespace included), a sender name outside 5–11 characters, or a value of the wrong type — a quoted phone number lands here. A 422 comes from a rule applied after the request binds successfully, such as a schedule date in the past. /single additionally checks that the recipient number is greater than 99999, and answers 400 for 1 to 99999 (zero, negative or missing is a 422); the other three sends do not run that check.
| Status | What it means | What to do |
|---|---|---|
202 | Accepted and queued. | Track it with the status endpoint. |
400 | A required field is missing (except a Recipient number, a 422, and a batch's IsBodyEncrypted, which defaults to false), a required text field is empty or only whitespace, a field has the wrong type, the sender name is outside 5–11 characters, or the id you asked about does not exist. | Read the body — it names the offending fields. |
401 | The token is missing, expired or invalid. | Fetch a new token and retry once. |
422 | A rule rejected the request, or the message could not be queued — see the table below. | Fix what the message names, in the request or in the account's setup in the portal: sent again with nothing changed, it fails the same way. Retry only when the message starts Message queue failed or asks you to try again in a few minutes. |
What a 422 is telling you — messages are quoted for one id; with several ids they use the plural, such as Segments … are …. The rejections that return ids in In can come back together in one 422, one part per kind of problem. On a queue failure, data repeats the message in Errors.
| Message | Cause |
|---|---|
| Recipient is required. | Recipient was missing, zero or negative. |
| Scheduled Date should be future date | ScheduleDateTime was in the past. Some sends end the message with a period. |
| Phone Number Should be Verified. Please login into account and verify to proceed further | The account's phone number is not verified. Sign in to the portal and verify it. |
| Invalid list ids | A ListId is unknown or another account's. On a batch send the ids come back in InValidListIds; other sends name the problem in the message only. |
| Invalid template id | The PredefinedTemplateId is unknown or another account's. |
| Invalid campaign id | The LandingPageId is unknown or another account's. On a batch send the id comes back in InValidCampaignIds; other sends name the problem in the message only. |
| Sender name has not been set up yet. … | The account has no sender name set up. Set one up in the portal, or contact support. |
| The provided sender name, …, is not valid. … | SenderName is not one of the account's sender names. |
| Either list or recipients is required to send | A batch left out both ListId and Recipients, or sent both as empty arrays, and named no segment. |
| Segment … is not found in your account. | A segment id is unknown or another account's. The ids come back in In. |
| Id … is a list, not a segment. … | A list id was sent in a segment field. Send list ids in ListId. The ids come back in In. |
| Segment … was created by a team member or staff login, not the account owner … | Only the account owner's segments can be used for sending. The ids come back in In. |
| Segment … is deleted. / Segment … is on a list that was deleted. | The segment, or its list, was deleted. The ids come back in In. |
| Segment … is missing a saved filter … | The segment has no saved filter, or is not a kind of segment a send can use. Open it in the portal and save it. The ids come back in In. |
| Segment … would be skipped when the SMS is sent … | The segment's list has no contact subscribed to SMS marketing, so the send engine leaves it out. |
| Segment … belongs to list …, which is already in ListId. | You sent a segment and its whole list. Keep one of them. |
| Segment … belongs to list …, which this request does not send to. … | An excluded segment's list must be in ListId, or be the list of a segment in Include. |
| ExcludeSegmentationId removes contacts from the lists and segments you send to … | An exclusion came without a ListId or Include. |
| Segment … is in both IncludeSegmentationId and ExcludeSegmentationId. … | The same segment was sent in both fields. Put it in only one of them. |
| Segment … has not been counted yet … | The segment is new or was just edited. If the message says it is being counted, try again in a few minutes; otherwise open and save it in the portal to recount it. The segment is named in the message only. |
| Segment … could not be counted right now … | We could not check the segment's contacts just now, so nothing was queued. Try again in a few minutes. |
| Segment … has no contacts with a mobile number … | An included segment has nobody to send to. An excluded segment in the same state is accepted: it removes nobody. |
| Segment … has contacts, but its saved count is 0 … | The saved count is out of date, so the send would skip the segment; if it is excluded, its contacts would get the SMS. Open and save it in the portal to recount it. |
| IncludeSegmentationId and ExcludeSegmentationId are not available on this API yet. … | Segment targeting is not switched on in this environment. |
| Message queue failed: … | We could not queue the message, so it was almost certainly not sent. Retry; if it keeps happening, contact support. |
| Aha! batch limit exceeded. Limit is per batch 1000 | More than 1,000 recipients in one batch. Split it. |
| Each recipients must have mobile no. | A recipient's MobileNo was zero or negative. On a batch a missing one counts as zero; on a saved-template send a missing one is a 400. |
| Each recipients must have unique email | A number appears twice in the batch. The wording says email; on this API it means the mobile number, and the response lists the duplicates. |
Limits
| Limit | Value |
|---|---|
| Recipients per batch | 1,000 |
| Sender name | 5–11 characters |
| Message length before splitting | 160 GSM-7 characters, or 70 if the body contains Unicode |
| Schedule precision | One minute — seconds are dropped, and past times are rejected |