Skip to Content

Count unread Mail split threads

Returns each saved split’s unread actionable Inbox threads: not Done, not snoozed, and not Closed in shared mailboxes.

GET
/v1/mailboxes/splits/counts

Returns each saved split’s unread actionable Inbox threads: not Done, not snoozed, and not Closed in shared mailboxes. Query splits use bounded search results; capped is true when search reaches its candidate limit, so unread is a lower bound. Requires a person signed in through Mail or the CLI.

Authorization

apiKey
headerx-api-key<token>

Response Body

Success

application/json
  1. response
[index: integer]?
Example Request
import { createClient } from "samva";

const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });

const result = await samva.mailboxes.countSplits({});
Example Response
[
  {
    "splitId": "string",
    "unread": 0,
    "capped": true
  }
]

Related documentation