Retrieve a message
Returns one message with its full status history. Use it to follow a message from sent to delivered or failed, and to read errorCode and errorMessage when it fails.
curl --request GET \
--url https://api.vobiz.ai/api/v1/sms/messages/{id} \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>'from vobiz import Vobiz
client = Vobiz(api_key="MA_XXXXXXXX", auth_token="YOUR_AUTH_TOKEN")
client.sms.messages.get_message(
id="9b2e1c40-8a3d-4f5e-9c1a-7d6b2e8f4a01",
)
const options = {
method: 'GET',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/sms/messages/{id}', 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": [],
"status": "delivered",
"conversationId": "c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04",
"createdAt": "2026-10-12T10:30:00Z",
"updatedAt": "2026-10-12T10:31:04Z",
"statusHistory": [
{
"status": "sent",
"createdAt": "2026-10-12T10:30:00Z"
},
{
"status": "delivered",
"createdAt": "2026-10-12T10:31:04Z"
}
]
}{
"error": "missing or invalid credentials"
}{
"error": "message not found"
}Authorizations
Your Vobiz account Auth ID (MA_XXXXXXXX).
Your Vobiz account Auth Token.
Path Parameters
The message id (UUID) returned by POST /messages, GET /messages, a conversation, or an event.
Response
The message and its status history.
A message with its full status history, as returned by GET /messages/{id}. It has every field of the message object plus statusHistory.
Unique identifier of the message (UUID). Use it with GET /messages/{id} and to match status events.
"9b2e1c40-8a3d-4f5e-9c1a-7d6b2e8f4a01"
Your Vobiz account ID (Auth ID), for example MA_XXXXXXXX.
"MA_XXXXXXXX"
out for a message you sent, in for a message one of your numbers received.
out, in Channel the message actually used: sms, mms or rcs. It can differ from the one you requested, for example mms after an SMS with media to US or Canadian numbers, or sms after an RCS send fell back with failoverToSms.
sms, mms, rcs Sender. For outbound messages, your number in E.164 format or the senderName of your RCS sender; for inbound messages, the contact's number.
"+14155550100"
Recipient. For outbound messages, the contact's number in E.164 format; for inbound messages, your number.
"+14155550123"
Message body. An empty string when the message has no text, for example an MMS with media only.
"Your verification code is 482913"
HTTPS URLs of the media attached to the message. null or an empty array when there is no media.
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 Error code reported for a failed message. Omitted when there is no error.
Human-readable reason a message failed. Omitted when there is no error; quote it to support when you need help with a failure.
The label you set when sending, for filtering and reporting. Omitted when none was set.
UUID of the conversation the message belongs to. Use it with GET /conversations/{id}/messages to load the thread.
The time you asked the message to be held until (ISO 8601, UTC). Omitted for messages that were not scheduled.
When the message was created, as an RFC 3339 / ISO 8601 timestamp in UTC.
"2026-10-12T10:30:00Z"
When the message last changed, for example on a status update (ISO 8601, UTC).
"2026-10-12T10:30:00Z"
Every status the message has passed through, oldest first, each with its time and any error detail. null when no status change has been recorded.
Show child attributes
Show child attributes
Was this page helpful?
curl --request GET \
--url https://api.vobiz.ai/api/v1/sms/messages/{id} \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>'from vobiz import Vobiz
client = Vobiz(api_key="MA_XXXXXXXX", auth_token="YOUR_AUTH_TOKEN")
client.sms.messages.get_message(
id="9b2e1c40-8a3d-4f5e-9c1a-7d6b2e8f4a01",
)
const options = {
method: 'GET',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/sms/messages/{id}', 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": [],
"status": "delivered",
"conversationId": "c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04",
"createdAt": "2026-10-12T10:30:00Z",
"updatedAt": "2026-10-12T10:31:04Z",
"statusHistory": [
{
"status": "sent",
"createdAt": "2026-10-12T10:30:00Z"
},
{
"status": "delivered",
"createdAt": "2026-10-12T10:31:04Z"
}
]
}{
"error": "missing or invalid credentials"
}{
"error": "message not found"
}