# Retrieve label

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

## 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

- `id` (path; string; pattern `^lbl_`; required)

## Responses

### 200: Label details, including assigned resources.

Content type: `application/json`

- `assigned_resources` (array of `LabelAssignedResource`; required)
- `color` (`LabelColor`; required)
- `description` (string; nullable)
- `id` (string; required)
- `name` (string; required)
- `resources_count` (`LabelResourcesCount`; required)

### 400: Invalid label ID

### 404: Label not found

## Schemas

### LabelAssignedResource

Object.

- `dataset` (string): Set only for frontend-generated integration dashboards.
- `id` (string): Uses the same public identifier as LabelAssignmentTarget.id.
- `templateId` (string): Set only for frontend-generated integration dashboards.
- `type` (string; one of `"dashboard"`, `"integration_dashboard"`, `"dataset"`, `"monitor"`, `"notifier"`; 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)