List mailbox folders
Returns each folder that holds a thread with its thread count and the caller's unread count. The folder set is fixed, so the list is never paged.
GET
Returns each folder that holds a thread with its thread count and the caller's unread count. The folder set is fixed, so the list is never paged.
apiKeyheader
x-api-key<token>id*stringMatch
^mbx_[0-9a-hjkmnp-tv-z]{16,24}$MailboxFolderCountList
application/json- response
items*array<>import { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.mailboxes.listFolders({
"id": "example"
});Example Response
{
"items": [
{
"folder": "inbox",
"count": 0,
"unreadCount": 0
}
]
}