Skip to main content
A conversation is the two-way thread between one of your numbers (or RCS senders) and one contact on one channel. Vobiz creates it with the first message in either direction and adds every later message between the same pair to it. You use the Conversations endpoints to build an inbox: list threads, read their messages, and keep unread counts in step with what your users have seen.

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 its unreadCount 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 with limit 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 to message.received with webhooks (callbacks), or open the WebSocket, then refresh the affected conversation with GET /conversations/{id}.