The conversation object
Endpoints
All paths are relative to
https://api.vobiz.ai/api/v1/sms. Every request carries your X-Auth-ID and X-Auth-Token headers.
Unread counts
Each new message in a thread raises itsunreadCount by one. GET /conversations/unread-count returns the sum across all threads as totalUnread, which suits an inbox badge. When a user opens a thread, call POST /conversations/{id}/read: the thread’s unreadCount returns to 0, lastReadAt is set to the current time, and totalUnread drops accordingly. The call takes no body and is safe to repeat.
Pagination
Both list endpoints return a bare JSON array and page withlimit and offset.
A page with fewer items than
limit is the last page. To show a thread oldest to newest, reverse each page.
Example
cURL
200 OK
Real-time updates
Polling works, but an inbox feels faster when it reacts to events. Subscribe tomessage.received with webhooks (callbacks), or open the WebSocket, then refresh the affected conversation with GET /conversations/{id}.