---
title: "Get an agent"
method: GET
path: "/api/v1/agents/{id}"
tags: ["Agents"]
---

# Get an agent

`GET /api/v1/agents/{id}`

## Request

- Base URL: `https://your-deployment.example.com`
- URL: `https://your-deployment.example.com/api/v1/agents/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Returns one agent the caller owns or that is shared with them.

## Path parameters

- `id` string, required

## Response `200`

The agent.

- GetAgentResponse200
  - `id` string, required
  - `name` string, required
  - `description` string, required
  - `system_prompt` string, nullable, required: The agent's system prompt. `null` unless the caller owns the agent.
  - `preferred_model` string, nullable, required: Model id the agent answers with; `null` uses the default.
  - `temperature` number, nullable, required
  - `max_tokens` integer, nullable, required
  - `allowed_tools` string[], nullable, required: Tools the agent may call. An empty list (or `null`) means the default tool policy applies.
  - `denied_tools` string[], nullable, required: Tools the agent may never call. An empty list (or `null`) means the default tool policy applies.
  - `trigger_words` string[], required: Mentions (for example `@research`) that invoke the agent in chat.
  - `is_owner` boolean, required: Whether the caller owns the agent, rather than having it shared with them.
  - `created_at` string, nullable, required: ISO 8601 timestamp.
  - `updated_at` string, nullable, required: ISO 8601 timestamp.

## Other responses

- `401`: Missing or invalid credentials.
- `403`: The API key holds neither `agents:read` nor `agents:write`.
- `404`: No agent with that id is visible to the caller. An agent that exists but is not yours to read, a deleted agent and a malformed id are all reported as 404, so agent ids cannot be probed through this endpoint.
- `405`: The path does not serve this HTTP method.
- `422`: Request failed validation.
- `429`: Per-user rate limit exceeded.

---

[API](https://skmtc.dev/bike4mind/apis/bike4mind-api.md) · [All operations](https://skmtc.dev/bike4mind/apis/bike4mind-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bike4mind/apis/bike4mind-api/revisions/0de0bdb0d113?raw)
