---
id: get-agent-stats
title: "Get memory statistics for an agent"
description: "Get statistics about nodes and links for a specific agent"
sidebar_label: "Get memory statistics for an agent"
hide_title: true
hide_table_of_contents: true
api: eJylVktv3DYQ/ivE5NIayq5t9KTbNrFdA04bxNtcbCMYU7MSY4pkyNE6m4X+ezGUtI+6SVHUF1PkzDcz37x2C4x1gvIOFjU5Vu/QYU0tOYaHAipKOprAxjso4YpYJUY2iY1OCh99x8r5ipJCVylr3FNSKx8VqhRIm5XRCgUVCvCBIgrOdQUl1MSf8ssnwUtQQMCILTFF8WULDluCEgYZU0EBRjwIyA0UEOlLZyJVUHLsqICkG2oRyi3wJohe4mhcDQWwYSsXQ3DXFfT9g+in4F2iJCrnp6fy7zjU205rSmnVWfVhFIYCtHcs4ZRbwBCs0Tmi+eckOtu9G33f9wX8cn7+EvgjWlNlNXURo4//ARVCFBbZDH5XxGisnAxTm14KWK+PXtFt/lhldo9Z6ovdjXFMNUXoH/piusMYcXNA5Y0fHIS+gDbVP2L9HaWENcEO7PuimQy1lNd+b9s/fibNRxm/y3ENpke5hz3Mnt6B3e+H8Xag75+MTSK/LZfvXwAOuW2JGz9Wcq5ebqCEOQYzX5/Nc9mm+XYq334+lblxK59pOKrLd9T6uFGL99fw9567dwvF1AYf0b5O1KJjo1U7KKRNYmpzyy2uh1ZLihuUNvWRUqEicTS0lqO0aCRM3iXl1xQHEENpdu/u3atX6pKQu0hJPk/UycmvyLqZfLtlH7Gmk5MyH0m1nWUTLO1gFK1WRhtybDfq2XCjsGPfovi7Qs2KvnJELXEN+LdTNLeEUTcCfWmyk5bW6HiP3CXjauXEPbTKoqs7rEl96UieB7RLMSH1oy6NZZLyys5mbIU6+pTUs4+2yt4IIZn7waORHx+Mky+VSAYSk90M6MvGuCd14argjWMBviInE41Ubt+v3KFV6NIzxaQeMVGlvBtNmIocG95kE1NQA+5VxNCojyZ1aM23XGcCfu2YMldrmnJdZ8n1oeQA8dbrTua1WkbUT2PY+TzYywN9QqlG4TRkqAuJIqvUheAjj3WwiLoxTFqKQa6WDU2V1iVK5b17LYyMRaluZOyLzTfeOdIHacuViJGUtj6RMk6xaWlQ3yX/hfpU5GjtRiXTGovxgDVRvhjo/BfLEqfMWRb/sSWVs7ADuQ2RsJLCWgjRR9xba3LmOOKaYkKbe2zkcOwptPdOjX/jFEedp/i4vKbOydTJJLJGkyySvcgioG5Inc9OoYAuWiihYQ6pnM+fn59nmJ9nPtbzUTfNb67fXPx+e/H6fHY6a7i1Aiw+DuPibHY6O5Wr4BO36A5syfae5sZ+ied17XZr+mj4bPer6X/t/nG+SpfMg0WTV0eOdjtOzjvAYKCA9RkUw9KXYVkerP9hgD4U0PjEorDdSpf9GW3fy7XMgg2Udw8FrDEafJTxereFyiQ5V1Cu0Cb6QYQ/fRh3zM/qez5Pq8TJIlmj7eQLCniizeGPlbw9G8KKYvZheF5oTYEPFF8se/lpslssVxdL6Pu/AGALWMc=
sidebar_class_name: "get api-method"
info_path: docs/api-reference/endpoints/agent-memory-api
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Get memory statistics for an agent"}
>
</Heading>

<MethodEndpoint
  method={"get"}
  path={"/api/v1/agents/{agent_id}/stats"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Get statistics about nodes and links for a specific agent

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={undefined}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}}}
>
  
</StatusCodes>


      