> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memanto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Agent

> Get detailed information about a specific agent.

## Overview

Returns metadata and counters for one agent registered with Memanto (namespace, pattern, sessions, etc.).

## Authentication

<ParamField header="Authorization" type="string">
  `Bearer <key>` — required unless the request originates from a loopback client. See [Management Endpoint Authentication](/api-reference/authentication#management-endpoint-authentication-agent-lifecycle).
</ParamField>

<ParamField header="X-Api-Key" type="string">
  Alternative to `Authorization: Bearer` — same credential.
</ParamField>

## Path Parameters

<ParamField path="agent_id" type="string" required>
  The unique identifier of the agent.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "http://localhost:8000/api/v2/agents/customer-support"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - OK theme={null}
  {
    "agent_id": "customer-support",
    "namespace": "memanto_agent_customer-support",
    "pattern": "support",
    "description": "Handles customer inquiries",
    "created_at": "2026-05-04T10:30:00.000000",
    "last_session": "2026-05-04T14:22:00.000000",
    "memory_count": 42,
    "session_count": 5,
    "status": "ready"
  }
  ```

  ```json 401 - Unauthorized (Management Auth Required) theme={null}
  {
    "detail": "Unauthorized. Agent management endpoints require either a loopback client or a valid management credential (Authorization: Bearer <key> or X-Api-Key)."
  }
  ```

  ```json 404 - Not Found theme={null}
  {
    "detail": {
      "error": "AgentNotFound",
      "message": "Agent 'customer-support' not found",
      "details": {}
    }
  }
  ```

  ```json 500 - Server Error theme={null}
  {
    "detail": {
      "error": "InternalServerError",
      "message": "An unexpected error occurred",
      "details": {
        "original_error": "..."
      }
    }
  }
  ```
</ResponseExample>

## Next Steps

Once you have verified the agent's details, you can:

* [Activate Agent](/api-reference/sessions/activate-agent) to start a session
* [List all Agents](/api-reference/agents/list-agents)
* [Delete Agent](/api-reference/agents/delete-agent) if it's no longer needed
