> ## 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.

# Get an agent



## OpenAPI

````yaml GET /api/agents/{agent_id}
openapi: 3.0.3
info:
  title: LiteLLM Agent Platform API
  description: >-
    Unified API for the LiteLLM Agent Platform — gateway, agents, sessions, and
    runtimes.
  version: 0.1.0
servers:
  - url: https://litellm-rust.onrender.com
    description: Production
  - url: http://localhost:4000
    description: Local (Docker Compose)
security:
  - BearerAuth: []
tags:
  - name: System
  - name: Models
  - name: Messages
  - name: API Keys
  - name: Agents
  - name: Sessions
  - name: Runtimes
  - name: MCP
paths:
  /api/agents/{agent_id}:
    get:
      tags:
        - Agents
      summary: Get an agent
      operationId: getAgent
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Agent details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Agent'
        '401':
          description: Unauthorized
        '404':
          description: Agent not found
      security:
        - BearerAuth: []
components:
  schemas:
    Agent:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          example: my-agent
        model:
          type: string
          example: claude-opus-4-5
        system:
          type: string
        tools:
          type: object
        config:
          type: object
          description: >-
            Runtime-specific config. For runtime-backed agents this usually
            includes `runtime`.
        owner_id:
          type: string
          nullable: true
        status:
          type: string
          example: paused
        description:
          type: string
          nullable: true
        harness:
          type: string
          example: claude-code
        created_at:
          type: integer
          format: int64
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Your LITELLM_MASTER_KEY. Default for local Docker Compose: `sk-local`'

````