---
title: "List mailbox folders"
method: GET
path: "/v1/mailboxes/{id}/folders"
tags: ["Mailboxes"]
---

# List mailbox folders

`GET /v1/mailboxes/{id}/folders`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/mailboxes/{id}/folders`
- Auth: API key in header `x-api-key`

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.

## Path parameters

- `id` string, required

## Response `200`

MailboxFolderCountList

- MailboxFolderCountList
  - `items` MailboxFolderCount[], required
    - `folder` 'inbox' | 'assigned' | 'pending' | 'sent' | 'archived' | 'trash', required
    - `count` integer, required
    - `unreadCount` integer, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
