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

# List labels

`GET /analytics/v1/labels`

Returns a list of labels that your account has access to.
Labels are listed in reverse chronological order by default.

## Query parameters

- `maxResults` string
- `pageToken` string
- `filter` string
- `sortBy` 'id' | 'name' | 'type' | 'createTime' | 'updateTime'
- `sortOrder` 'asc' | 'desc'

## Response `200`

OK - The request succeeded.

- LabelList — Paged list of labels.
  - `pageToken` string — Page token, returned by a previous call, to request the next page of results.
  - `rowCount` integer — Total number of labels in the result set.
  - `labels` LabelListItem[]
    - `id` string, required — The unique identifier of the label.
    - `name` string, required — The name of the label.
    - `color` 'blue' | 'skyBlue' | 'teal' | 'mint' | 'lime' | 'softYellow' | 'apricot' | 'lavender' | 'purple' | 'rosePink' | 'slateGrey', required — The color of the label.
    - `type` 'custom' | 'preset' — The type of the label (custom or preset).
    - `createTime` string, date-time — The time when the label was created.
    - `updateTime` string, date-time — The time when the label was last updated.

## Other responses

- `400` — Bad Request - The server cannot process the request, often due to a malformed request.
- `401` — Unauthorized - Invalid API key.
- `403` — Forbidden - The client is not authorized to perform the request.
- `404` — Not Found - The requested resource does not exist.

---

[API](https://skmtc.dev/doit/apis/doit-cloud-intelligence.md) · [All operations](https://skmtc.dev/doit/apis/doit-cloud-intelligence/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/doit/doit-cloud-intelligence/revisions/9416402fc119/schema)
