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

# List labels

`GET /labels`

Lists all available labels in a user context. Append `?workspaceId` to list labels in a workspace context.

## Query parameters

- `workspaceId` integer
- `max` integer
- `offset` integer
- `search` string
- `type` 'simple' | 'resource' | 'all'
- `isDefault` boolean

## Response `200`

OK

- ListLabelsResponse
  - `labels` LabelDbDto[]
    - `dateCreated` string, date-time
    - `id` integer
    - `isDefault` boolean
    - `isDynamic` boolean
    - `isInterpolated` boolean
    - `name` string
    - `resource` boolean
    - `value` string
  - `totalSize` integer

## Other responses

- `400` — Bad request
- `403` — Operation not allowed

---

[API](https://skmtc.net/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.net/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/versions/13316c9fe5ff/schema)
