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

# List mailbox labels

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

## Request

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

Returns every label defined on a mailbox, ordered by name. A mailbox holds at most 100 labels, so the list is never paged.

## Path parameters

- `id` string, required

## Response `200`

MailboxLabelList

- MailboxLabelList
  - `items` MailboxLabel[], required
    - `id` string, required
    - `slug` string, required
    - `displayName` string, required
    - `color` 'billing' | 'domain' | 'agent' | 'routing' | 'important' | 'neutral', nullable, required
    - `createdAt` string, required
    - `updatedAt` string, 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)
