---
title: "List labels"
method: GET
path: "/v1/labels"
tags: ["v1"]
---

# List labels

`GET /v1/labels`

## Request

- Base URL: `https://api.datadive.tools`
- URL: `https://api.datadive.tools/v1/labels`
- Auth: API key in header `x-api-key`

Returns the labels of your organization as a tree. Use their ids wherever a route or filter takes a label id. Labels have no access rights, so every caller sees all of them.

## Response `200`

- ExternalTagTreeDto
  - `data` ExternalTagNodeDto[], required
    - `id` number, required: Id to pass to the niche assignment routes and the list filters
    - `name` string, required: Name of this node only
    - `path` string, required: Full name, with ancestors joined by `/`
    - `parentId` number, nullable, required: Id of the parent node in this tree, or null at the top level
    - `children` ExternalTagNodeDto[], required

## Other responses

- `401`: Api key is invalid
- `403`: Unauthorized to access the resource
- `404`: Resource not found
- `429`: Rate limit exceeded, either the per-client-IP limit or the per-API-key limit for this endpoint.
- `500`: Internal error

## Changes

- **2026-10-23** `8196b366773e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/datadive/apis/data-dive-developer-apis/changes/v1/labels/get.md)

---

[API](https://skmtc.dev/datadive/apis/data-dive-developer-apis.md) - [All operations](https://skmtc.dev/datadive/apis/data-dive-developer-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/datadive/apis/data-dive-developer-apis/revisions/94c025cac171?raw)
