---
title: "Retrieve a label"
method: GET
path: "/v1/labels/{id}"
tags: ["Labels"]
---

# Retrieve a label

`GET /v1/labels/{id}`

## Request

- Base URL: `https://api.mails.ai`
- URL: `https://api.mails.ai/v1/labels/{id}`
- Auth: HTTP bearer

**Requires scope:** `read`.

## Path parameters

- `id` string, required

## Response `200`

The label.

- Label
  - `id` string, required: Label id (`lbl_…`).
  - `name` string, required: Unique in the workspace, ignoring case.
  - `color` 'gray' | 'red' | 'orange' | 'amber' | 'yellow' | 'green' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'pink', required: The label's colour, one of 12 palette names: `gray` unless another was chosen.
  - `created_at` string, date-time, required: When the label was created (UTC).
  - `updated_at` string, date-time, required: When the label was last changed with PATCH, even by a request that left it as it was. Equal to `created_at` on a label never patched.

## Other responses

- `401`: Missing or invalid API key.
- `403`: The API key lacks the required scope (`insufficient_scope`), or the token belongs to an app connected by sign-in and this operation is closed to connected apps (`connected_app_not_allowed`).
- `404`: Resource not found in this workspace, or the agent a send names is archived (`agent_archived`).
- `500`: Internal server error.

---

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