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
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.
apiKeyheader
x-api-key<token>Success
application/json- response
[index: integer]?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
}
]