---
title: "List Labels"
method: GET
path: "/v1/agents/{agent_id}/labels"
tags: ["Labels"]
---

# List Labels

`GET /v1/agents/{agent_id}/labels`

list all free-standing labels for an agent; filter by substring with q.

## Path parameters

- `agent_id` integer, required

## Query parameters

- `q` string, nullable

## Headers

- `X-API-Key` string, required

## Response `200`

Successful Response

- LabelPydantic[]
  - `id` string, uuid, nullable
  - `created_at` string, date-time, nullable
  - `agent_id` integer, required
  - `label_text` string, required
  - `prompt_id` string, uuid, nullable
  - `knowledge_base_id` string, uuid, nullable
  - `color` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/getbluejay/apis/bluejay-api.md) · [All operations](https://skmtc.net/getbluejay/apis/bluejay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbluejay/bluejay-api/revisions/f48cef80963f/schema)
