Skip to main content
GET
Get Agent Version By Label
Integration Prompt for AI Agents
Deprecated: GET /v1/agents/{agent_id}/prompts?label=.... Old path, still works. There is no /versions twin.To list versions for a label, use List Agent Versions with ?label=.
DEPRECATED. Retrieves a single version by label under /agents/{agent_id}/prompts?label=....
  • if label is missing -> 400
  • if label resolves to 0 -> 404; >1 -> 400 ambiguous (except latest which should be unique)

Headers

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

API key required to authenticate requests.

Path Parameters

agent_id
integer
required

Query Parameters

label
string | null

Response

Successful Response

response model for prompt without created_at.

prompt_text
string
required

the prompt content

version
integer
required

the version number of the prompt

agent_id
integer
required

id of the agent that owns this prompt

id
string<uuid> | null

the id of the prompt

commit_message
string | null
labels
string[] | null

labels associated with the prompt

metadata
Metadata · object | null

arbitrary JSON metadata