Conversations
Count unread messages
Returns the total of unreadCount across all your conversations. Use it for an inbox badge, then call GET /Conversation/ to see which threads are unread.
GET
/
api
/
v1
/
Account
/
{auth_id}
/
Sms
/
Conversation
/
UnreadCount
/
cURL
curl --request GET \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/Conversation/UnreadCount/ \
--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.unread_count()
const options = {
method: 'GET',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/Conversation/UnreadCount/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"totalUnread": 4
}Authorizations
Path Parameters
Was this page helpful?
⌘I
cURL
curl --request GET \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/Conversation/UnreadCount/ \
--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.unread_count()
const options = {
method: 'GET',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/Conversation/UnreadCount/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"totalUnread": 4
}