# List labels

Source: https://docs.maylee.app/api-reference/labels/list-labels

`GET https://api.maylee.app/api/v1/labels`

Scope: `read`.

Every label of the workspace, AI labels included. Use the ids in filters and on `POST /emails/{emailId}/labels/{labelId}`.

## Example request

```bash
curl -X GET "https://api.maylee.app/api/v1/labels" \
  -H "Authorization: Bearer $MAYLEE_KEY"
```

## Responses

### 200

Labels, AI-applied ones included.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array of Label | yes |  |
| `items[].color` | string | yes | Color name. The Maylee app renders `Pink`, `Blue`, `Red`, `Yellow`, `Green`, `Purple` and `Orange`; any other value is stored but shown without color. |
| `items[].createdAt` | string (date-time) | yes |  |
| `items[].id` | string | yes |  |
| `items[].isAiLabel` | boolean | yes | True when the label is applied by the AI pipeline rather than a human. AI labels are managed through `/ai-label-rules`. |
| `items[].name` | string | yes |  |

```json
{
  "items": [
    {
      "color": "Green",
      "createdAt": "2026-06-02T09:20:00.000Z",
      "id": "cmtg1a2b3c4d5e6f7g8h9i0j",
      "isAiLabel": false,
      "name": "Quotes"
    }
  ]
}
```

### 401

Missing, malformed, revoked or expired API key.

### 403

Key lacks the required scope, or outbound sending is not enabled on it.

### 429

Per-minute rate limit (`RATE_LIMIT_EXCEEDED`) or monthly quota (`QUOTA_EXCEEDED`) exhausted.

Errors use the format `{ "code", "error", "details" }`: see [Errors](/errors.md).
