List messages
Returns the messages on your account, sent and received, newest first. Combine the filters to find a message you did not keep the id for, such as the other recipients of a multi-recipient send (filter by tag or to).
curl --request GET \
--url https://api.vobiz.ai/api/v1/sms/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.messages.list_messages()
const options = {
method: 'GET',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/sms/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"messages": [
{
"id": "9b2e1c40-8a3d-4f5e-9c1a-7d6b2e8f4a01",
"accountId": "MA_XXXXXXXX",
"direction": "out",
"channel": "sms",
"from": "+14155550100",
"to": "+14155550123",
"text": "Your verification code is 482913",
"mediaUrls": [
"<string>"
],
"status": "scheduled",
"errorCode": "<string>",
"errorMessage": "<string>",
"tag": "<string>",
"conversationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scheduledAt": "2023-11-07T05:31:56Z",
"createdAt": "2026-10-12T10:30:00Z",
"updatedAt": "2026-10-12T10:30:00Z"
}
],
"total": 128,
"limit": 20,
"offset": 0
}{
"error": "missing or invalid credentials"
}{
"error": "internal error"
}Authorizations
Your Vobiz account Auth ID (MA_XXXXXXXX).
Your Vobiz account Auth Token.
Query Parameters
Only messages with this status: scheduled, sent, delivered, failed, received (inbound) or unknown.
scheduled, sent, delivered, failed, received, unknown Only messages sent or received on this channel: sms, mms or rcs. This is the channel actually used, so an SMS that was upgraded to MMS appears under mms.
sms, mms, rcs out for messages you sent, in for messages your numbers received.
out, in Recipient number to filter on, in E.164 format, exact match. For inbound messages this is your number.
Sender to filter on, exact match: one of your numbers in E.164 format (for example +14155550100), or the senderName of your RCS sender for RCS messages. For inbound messages this is the contact's number.
Only messages whose tag equals this value, exact match. Set the same tag on related sends to retrieve them together.
Only messages created at or after this time, as an RFC 3339 / ISO 8601 timestamp such as 2026-10-01T00:00:00Z.
Only messages created before this time, as an RFC 3339 / ISO 8601 timestamp such as 2026-11-01T00:00:00Z. Combine with startDate for a date range.
Maximum number of messages to return, from 1 to 100. Defaults to 20; a value outside that range also returns 20.
1 <= x <= 100Number of records to skip before the page starts, 0 or greater. Defaults to 0. Add the page size to it to fetch the next page.
x >= 0Response
A page of messages.
One page of messages from GET /messages, with the total number of matches so you can page through the rest.
The messages on this page, newest first. An empty array when nothing matches.
Show child attributes
Show child attributes
Total number of messages that match your filters across all pages. Stop paging when offset plus the page length reaches it.
128
The limit you sent in the request, or 0 when you omitted it. The page itself holds at most 100 messages, and 20 when limit is omitted.
20
The number of messages skipped before this page, as sent in the request.
0
Was this page helpful?
curl --request GET \
--url https://api.vobiz.ai/api/v1/sms/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.messages.list_messages()
const options = {
method: 'GET',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/sms/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"messages": [
{
"id": "9b2e1c40-8a3d-4f5e-9c1a-7d6b2e8f4a01",
"accountId": "MA_XXXXXXXX",
"direction": "out",
"channel": "sms",
"from": "+14155550100",
"to": "+14155550123",
"text": "Your verification code is 482913",
"mediaUrls": [
"<string>"
],
"status": "scheduled",
"errorCode": "<string>",
"errorMessage": "<string>",
"tag": "<string>",
"conversationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scheduledAt": "2023-11-07T05:31:56Z",
"createdAt": "2026-10-12T10:30:00Z",
"updatedAt": "2026-10-12T10:30:00Z"
}
],
"total": 128,
"limit": 20,
"offset": 0
}{
"error": "missing or invalid credentials"
}{
"error": "internal error"
}