MobiariDocs
Admin APIConversations

Count conversations

GET
/stores/{store_id}/conversations/counts

Per-status totals and unread counts for the whole store, in one cheap query. Poll it for a badge or refresh it on conversation:updated.

Authorization

bearer_auth
AuthorizationBearer <token>

Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.

In: header

Path Parameters

store_id*string

Store id

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/conversations/counts"
{
  "mine": 0,
  "mine_unread": 0,
  "open": 0,
  "pending": 0,
  "resolved": 0,
  "snoozed": 0,
  "unassigned": 0,
  "unassigned_unread": 0,
  "unread": 0,
  "unread_messages": 0
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}