Mailboxes

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
/v1/mailboxes/{id}/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.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

id*string
Match^mbx_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

MailboxFolderCountList

application/json
  1. response
items*array<>
Example Request
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    }  ]}

Related documentation