---
title: "Get Agent Version By Id"
method: GET
path: "/v1/agents/{agent_id}/prompts/{prompt_id}"
tags: ["Prompts"]
deprecated: true
---

# Get Agent Version By Id

`GET /v1/agents/{agent_id}/prompts/{prompt_id}`

## Request

- Base URL: `https://api.getbluejay.ai`
- URL: `https://api.getbluejay.ai/v1/agents/{agent_id}/prompts/{prompt_id}`
- Auth: `HTTPBearer` (a scheme the document does not define)

> **Deprecated.**

## Path parameters

- `agent_id` integer, required
- `prompt_id` string, uuid, required

## Headers

- `X-Organization-Id` string
- `X-API-Key` string, required

## Response `200`

Successful Response

- AgentVersionResponse: response model for prompt without created_at.
  - `id` string, uuid, nullable: the id of the prompt
  - `prompt_text` string, required: the prompt content
  - `commit_message` string, nullable
  - `labels` string[], nullable: labels associated with the prompt
  - `metadata` object, nullable: arbitrary JSON metadata
  - `version` integer, required: the version number of the prompt
  - `agent_id` integer, required: id of the agent that owns this prompt

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-10** `547d989af0ef`: 2 info
  - api operation id `get_prompt_by_id_v1_agents__agent_id__prompts__prompt_id__get` removed and replaced with `get_agent_version_by_id_v1_agents__agent_id__prompts__prompt_id__get`
  - endpoint deprecated
- **2026-09-03** `aa501502e1fc`: 1 info
  - added the new optional `header` request parameter `X-Organization-Id`

[Operation history](https://skmtc.dev/getbluejay/apis/bluejay-api/changes/v1/agents/:agent_id/prompts/:prompt_id/get.md)

---

[API](https://skmtc.dev/getbluejay/apis/bluejay-api.md) - [All operations](https://skmtc.dev/getbluejay/apis/bluejay-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getbluejay/apis/bluejay-api/revisions/5e81060bf1a4?raw)
