List conversation messages
Returns the messages in one conversation, in both directions, newest first. Use it to render a chat thread: reverse the page to show it oldest to newest.
curl --request GET \
--url https://api.vobiz.ai/api/v1/sms/conversations/{id}/messages \
--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.conversations.list_conversation_messages(
id="c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04",
)
const options = {
method: 'GET',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/sms/conversations/{id}/messages', 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 appointment is confirmed for 3pm tomorrow.",
"mediaUrls": null,
"status": "delivered",
"conversationId": "c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04",
"createdAt": "2026-10-16T21:23:02Z",
"updatedAt": "2026-10-16T21:23:09Z"
},
{
"id": "2e7f4b91-6c3d-4a8e-b5f1-9d0c7a2e3b64",
"accountId": "MA_XXXXXXXX",
"direction": "in",
"channel": "sms",
"from": "+14155550123",
"to": "+14155550100",
"text": "Thanks, see you then.",
"mediaUrls": null,
"status": "received",
"conversationId": "c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04",
"createdAt": "2026-10-16T21:23:51Z",
"updatedAt": "2026-10-16T21:23:51Z"
}
]{
"error": "missing or invalid credentials"
}{
"error": "internal error"
}Authorizations
Your Vobiz account Auth ID (MA_XXXXXXXX).
Your Vobiz account Auth Token.
Path Parameters
The conversation id (UUID), from GET /conversations or the conversationId on any message.
Query Parameters
Maximum number of messages to return, from 1 to 100. Defaults to 50; a value outside that range also returns 50.
1 <= x <= 100Number of messages to skip before the page starts, 0 or greater. Defaults to 0. Add the page size to it to load older messages.
x >= 0Response
A page of messages.
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"
Was this page helpful?
curl --request GET \
--url https://api.vobiz.ai/api/v1/sms/conversations/{id}/messages \
--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.conversations.list_conversation_messages(
id="c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04",
)
const options = {
method: 'GET',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/sms/conversations/{id}/messages', 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 appointment is confirmed for 3pm tomorrow.",
"mediaUrls": null,
"status": "delivered",
"conversationId": "c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04",
"createdAt": "2026-10-16T21:23:02Z",
"updatedAt": "2026-10-16T21:23:09Z"
},
{
"id": "2e7f4b91-6c3d-4a8e-b5f1-9d0c7a2e3b64",
"accountId": "MA_XXXXXXXX",
"direction": "in",
"channel": "sms",
"from": "+14155550123",
"to": "+14155550100",
"text": "Thanks, see you then.",
"mediaUrls": null,
"status": "received",
"conversationId": "c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04",
"createdAt": "2026-10-16T21:23:51Z",
"updatedAt": "2026-10-16T21:23:51Z"
}
]{
"error": "missing or invalid credentials"
}{
"error": "internal error"
}