Documentation Index
Fetch the complete documentation index at: https://docs.litellm-agent-platform.ai/llms.txt
Use this file to discover all available pages before exploring further.
Fetches a single agent by its ID. Returns 404 if the agent does not exist.
Request
GET /api/v1/managed_agents/agents/{agent_id}
Headers
| Header | Value |
|---|
Authorization | Bearer <MASTER_KEY> |
Path parameters
The unique ID of the agent to retrieve.
Response
Returns an ApiAgent object. See List agents for the full field reference.
Example
curl "https://<your-platform-host>/api/v1/managed_agents/agents/agt_01j9xyz" \
-H "Authorization: Bearer $MASTER_KEY"
{
"id": "agt_01j9xyz",
"name": "pr-reviewer",
"model": "anthropic/claude-sonnet-4-6",
"prompt": "You are a senior engineer who reviews pull requests.",
"harness_id": "claude-agent-sdk",
"supports_tui": false,
"repo_url": "https://github.com/BerriAI/litellm",
"branch": "main",
"pfp_url": null,
"mcp_servers": [],
"env_vars": {
"GITHUB_TOKEN": "ghp_..."
},
"attached_skill_ids": [],
"allow_out": [],
"deny_out": [],
"created_at": "2025-05-01T12:00:00.000Z"
}