---
title: "Get Label By Id"
method: GET
path: "/v1/agents/{agent_id}/labels/{label_id}"
tags: ["Labels"]
---

# Get Label By Id

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

## Path parameters

- `agent_id` integer, required
- `label_id` string, required

## Headers

- `X-API-Key` string, required

## Response `200`

Successful Response

- LabelPydantic — Represents a label record stored in the `labels` table.
  - `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/18bc44e35414/schema)
