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

# Get a label

`GET /labels/{id}`

## Request

- Base URL: `https://api.axiom.co/v2`
- URL: `https://api.axiom.co/v2/labels/{id}`
- Auth: OAuth 2
  - Authorization code: `https://accounts.google.com/o/oauth2/v2/auth`
  - Token URL: `https://www.googleapis.com/oauth2/v4/token` scopes: `labels|read`
- TypeScript: <https://skmtc.dev/axiom/apis/axiom-public-api/docs/labels/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Response `200`

Label details, including assigned resources.

- LabelDetails
  - `assigned_resources` LabelAssignedResource[], required
    - `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` 'dashboard' | 'integration_dashboard' | 'dataset' | 'monitor' | 'notifier', required
  - `color` LabelColor, required
    - `name` 'red' | 'coral' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'teal' | 'blue' | 'iris' | 'purple' | 'pink', required
    - `type` 'palette', required
  - `description` string, nullable
  - `id` string, required
  - `name` string, required
  - `resources_count` LabelResourcesCount, required
    - `dashboards` integer, required
    - `datasets` integer, required
    - `monitors` integer, required
    - `notifiers` integer, required
    - `total` integer, required

## Other responses

- `400`: Invalid label ID
- `404`: Label not found

## Changes

- **2026-11-02** (v2) `e3baf3b85e8d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/axiom/apis/axiom-public-api/changes/labels/:id/get.md)

---

[API](https://skmtc.dev/axiom/apis/axiom-public-api.md) - [All operations](https://skmtc.dev/axiom/apis/axiom-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/axiom/apis/axiom-public-api/revisions/7e39a295e3ba?raw)
