# List all labels

```http
GET https://api.axiom.co/v2/labels
```

Returns labels as JSON, or the labels Agent Skill when the request negotiates text/markdown.

## Authentication

Authenticate using an API token or personal access token (PAT). Include the token as a Bearer token: `Authorization: Bearer <token>`. For more information, see [Tokens](/reference/tokens).

## Parameters

- `name` (query; string): Filter labels by name.

## Responses

### 200: Labels

Content type: `application/json`

Type: array of `LabelSummary`

Content type: `text/markdown`

Type: array of `LabelSummary`

## Schemas

### LabelSummary

Object.

- `color` (`LabelColor`; required)
- `description` (string; nullable)
- `id` (string; required)
- `name` (string; required)
- `resources_count` (`LabelResourcesCount`; required)

### LabelColor

Object.

- `name` (string; one of `"red"`, `"coral"`, `"orange"`, `"amber"`, `"yellow"`, `"lime"`, `"green"`, `"teal"`, `"blue"`, `"iris"`, `"purple"`, `"pink"`; required)
- `type` (string; one of `"palette"`; required)

### LabelResourcesCount

Object.

- `dashboards` (integer (int64); required)
- `datasets` (integer (int64); required)
- `monitors` (integer (int64); required)
- `notifiers` (integer (int64); required)
- `total` (integer (int64); required)