Send a message
Sends an SMS, MMS or RCS message from one of your numbers or RCS senders to one or more recipients.
curl --request POST \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/Message/ \
--header 'Content-Type: application/json' \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"from": "+14155550100",
"to": [
"+14155550123"
],
"text": "Your verification code is 482913"
}
'from vobiz import Vobiz
client = Vobiz(api_key="MA_XXXXXXXX", auth_token="YOUR_AUTH_TOKEN")
client.sms.messages.send_message(
from_="+14155550100",
to=[
"+14155550123"
],
channel="sms",
text="Your verification code is 482913",
idempotency_key="otp-482913-user-77",
)
const options = {
method: 'POST',
headers: {
'X-Auth-ID': '<api-key>',
'X-Auth-Token': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
from: '+14155550100',
to: ['+14155550123'],
text: 'Your verification code is 482913'
})
};
fetch('https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/Message/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "9b2e1c40-8a3d-4f5e-9c1a-7d6b2e8f4a01",
"accountId": "MA_XXXXXXXX",
"direction": "out",
"channel": "sms",
"from": "+14155550100",
"to": "+14155550123",
"text": "Your verification code is 482913",
"mediaUrls": null,
"status": "sent",
"tag": "otp",
"conversationId": "c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04",
"createdAt": "2026-10-12T10:30:00Z",
"updatedAt": "2026-10-12T10:30:00Z"
}Authorizations
Path Parameters
Body
What to send, from which sender, to whom and on which channel, plus optional scheduling, idempotency, RCS and India DLT settings.
The sender. For sms and mms, a number on your account in E.164 format, for example +14155550100. Alphanumeric sender IDs are not available self-serve outside India. For rcs, the senderName of your RCS sender (from GET /Sender/) or a number on your account. With failoverToSms, the SMS copy is sent from this same from, so for US and Canadian recipients the fallback needs a number here.
"+14155550100"
Message body. Required for sms and for a plain rcs text message. With rcsTemplateName or rcsContent it is used only as the SMS fallback text, and is required when failoverToSms is true. A long SMS is split into segments and billed per segment (160 GSM-7 or 70 UCS-2 characters fit in one segment). For mms, provide text, mediaUrls or both, with text up to 5000 characters.
"Your verification code is 482913"
Publicly reachable https URLs of media to attach. MMS accepts up to 10. RCS sends only the first URL, as a file message, and text is not shown with it (it is still the SMS fallback text). Cannot be combined with rcsTemplateName or rcsContent; put media in a card instead. An SMS to recipients outside the US and Canada is sent as text only.
10Used only when channel is rcs. When true and the RCS platform rejects the send at the time of the request, Vobiz sends text as SMS from the same from, and the message's channel becomes sms. A message that the platform accepts and that fails later is not resent as SMS. Defaults to false.
Used only when channel is rcs. The templateName of an approved template (status APPROVED or APPROVED_PARTIALLY) of the RCS sender in from. The template's content is sent instead of text. Cannot be combined with rcsContent, mediaUrls or a future scheduledAt.
"order-shipped"
Response
Sent or scheduled for every recipient. Body is the first recipient's message.
One message sent from or received by your account. Each recipient of a send gets its own message object with its own id, status and conversation.
Where the message is in its lifecycle: scheduled (held for scheduledAt), sent (handed to the network), delivered (delivery confirmed), failed (see errorCode and errorMessage), received (inbound) or unknown (the network reported a status that maps to none of the others).
scheduled, sent, delivered, failed, received, unknown Was this page helpful?
curl --request POST \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/Message/ \
--header 'Content-Type: application/json' \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"from": "+14155550100",
"to": [
"+14155550123"
],
"text": "Your verification code is 482913"
}
'from vobiz import Vobiz
client = Vobiz(api_key="MA_XXXXXXXX", auth_token="YOUR_AUTH_TOKEN")
client.sms.messages.send_message(
from_="+14155550100",
to=[
"+14155550123"
],
channel="sms",
text="Your verification code is 482913",
idempotency_key="otp-482913-user-77",
)
const options = {
method: 'POST',
headers: {
'X-Auth-ID': '<api-key>',
'X-Auth-Token': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
from: '+14155550100',
to: ['+14155550123'],
text: 'Your verification code is 482913'
})
};
fetch('https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/Message/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "9b2e1c40-8a3d-4f5e-9c1a-7d6b2e8f4a01",
"accountId": "MA_XXXXXXXX",
"direction": "out",
"channel": "sms",
"from": "+14155550100",
"to": "+14155550123",
"text": "Your verification code is 482913",
"mediaUrls": null,
"status": "sent",
"tag": "otp",
"conversationId": "c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04",
"createdAt": "2026-10-12T10:30:00Z",
"updatedAt": "2026-10-12T10:30:00Z"
}