# GET /api/v1/email/messages/folders

> List a mailbox's folders with unread counts

- Group: email
- Tier: R
- Required scope: contents:email + read:email
- Docs: https://api.inleed.com/reference/email/list-mail-folders

## Description

Returns `folders[]` — `name`, `messages`, `unseen`, `sizeBytes` — for the mailbox `address`. For the mailboxes themselves use `list_mailboxes`; to read what is inside a folder use `search_mail`.

## Query parameters

- `address` — string (required). The full mailbox address, e.g. info@example.com.

## Request

```bash
curl -X GET "https://mcp.inleed.com/api/v1/email/messages/folders?address=info%40example.se" \
  -H "Authorization: Bearer inl_live_…"
```

## Response · 200

```json
{
  "target": {
    "input": "example.se",
    "kind": "domain",
    "domain": null,
    "mailbox": null,
    "serviceId": 90714,
    "domainServiceId": null,
    "daUsername": "inleed42",
    "node": "web12",
    "userId": 4821,
    "note": null
  },
  "address": "info@example.se",
  "folders": [
    {
      "name": "example.se",
      "messages": 1,
      "unseen": 1,
      "sizeBytes": 3
    }
  ]
}
```

## Errors

- **401** No token was presented, or the token is revoked, expired or unknown. — codes: unauthorized, token_expired, token_revoked
- **403** The token lacks a required scope, or this account does not own the resource. — codes: insufficient_scope
- **422** Validation error — codes: validation_failed
- **429** The rate limit for this token is exhausted. See `Retry-After`. — codes: rate_limited
- **500** Something went wrong on our side. The failure is logged against `requestId`. — codes: internal_error

## Related

- GET /api/v1/email/messages — https://api.inleed.com/reference/email/search-mail
- GET /api/v1/email/messages/detail — https://api.inleed.com/reference/email/read-email-message
- POST /api/v1/email/messages/actions/organize — https://api.inleed.com/reference/email/organize-mail

