---
id: get-graph
title: "Get memory graph data"
description: "Retrieve graph data for visualization, optionally filtered by type (world/experience/opinion). Limited to 1000 most recent items."
sidebar_label: "Get memory graph data"
hide_title: true
hide_table_of_contents: true
api: eJzNVm1r4zgQ/itiPrXg2o63C4e/ZW9DL9BtS5q9gwulKPYk1kaWvJKSNGv834+Rncbuyx4cd3D9kiLPyzPPzDNSDTnazIjKCa0ghRk6I3CHbG14VbCcO85W2rCdsFsuxQ9OdgHT3p5LeWArIR0azNnywNyhQna210bmET5VaASqDCNdCSW0Og/ZtSiFw5w5zUZxHLNSW8cMZqgcEw5LG0IAukLj80xzSGGN7tGDgQAqbniJDo2FdFGD4iVCCkuuNo8ihwAElVBxR7YGv2+FwRxSZ7YYgM0KLDmkNRBKSME6I9QaAnDCSTr4xNWGTXNomuA5trftAn/fojkMIq+4tIPQXB1uVx7bMAlF7E7UVkpoHk5p53Te0IlBW2ll0VKoJI7pZ9ie+22WobWrrWSzzhgCyLRyqJwHUFVSZJ696Jsln7oHrzLErRNtBqXz9h/PvPfOc9E29q5n2fLXwdfLb5g5aJ4PuDH80GPxxkdtAsB8/R+En/io9J0vJT4avf/3c8wpNJtRaDLSjsvHrRLO9qZHKIdrNH0vsmNfvV3TvMzWH5tFR/2Ro0Exw4S9ObkiEXzmjvc6/1K87QdW6hyl121PxqjySgvlSGL4xMuKotbHNi1qWBldQgojDwFSSOC5CIslV05kEMAexbpwkMbhLzSz3RAtahB55yz5EiWkMJYiQ7bXZmMZd+xK67XEU0y/JrwyvGfS8/ykl2xPO6EQm06jA5+HYfsXdSuBJwcp/KHNhgm10kQPd+SVxMnlRTy6GH1kozj9EBMByol2NDqYZ3eT2f3tzXnQ4WRnt7Or8c30z/F8entzTjuAUPJlNko+XH4MQ6KxS/l2oR5lf3aShv4CuEyS18r+nUuRe92yiTHa/HNZ5+i4kANRDA2kzoaS+fuldZz25uF91VzrFiBpprTrn23aL2gtX+NJgu+bejJYtyN/Liqqq03d2fXEc6K3Zff9Mj639L2V7Gjy23x+9ypg29sSXaG7a8tfWK6AFKLdKMpxxbfSRXRb2ajuLq0mOt5tfmSJiGMSoXJLUmOUjo3vpq/0fvzglf5s300Oz/zkdPfYFyy1ObD7g3VYUvU0srRDTibjimcFsiQkfWwN6bBwrrJpFO33+5D7z6E266jztdH19NfJzf3kIgnjsHClpMA7NLaFNwrjMKajSltXctXLdYWOlS2k04Z6WV99UsD/4l3SjQOJPqokF37SPVF11+gF7Ea+Ct9qCPzThFZ6enqjtP1+CKDQ1pFLXS+5xa9GNg0dt68MUmMuLC250ztjg4fTk2TH5Zbg+D2z40aQ7dt+77J6Nuvkc87eq++oEnXo5zxiOZbl90KBPEfjIbRfx1mGlev5vVpjhP1ZMleTOTTNX3BHkSA=
sidebar_class_name: "get api-method"
info_path: docs/api-reference/endpoints/hindsight-http-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 graph data"}
>
</Heading>

<MethodEndpoint
  method={"get"}
  path={"/v1/default/banks/{bank_id}/graph"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Retrieve graph data for visualization, optionally filtered by type (world/experience/opinion). Limited to 1000 most recent items.

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

<ParamsDetails
  parameters={[{"name":"bank_id","in":"path","required":true,"schema":{"type":"string","title":"Bank Id"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}}]}
>
  
</ParamsDetails>

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

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"nodes":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Nodes"},"edges":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Edges"},"table_rows":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Table Rows"},"total_units":{"type":"integer","title":"Total Units"}},"type":"object","required":["nodes","edges","table_rows","total_units"],"title":"GraphDataResponse","description":"Response model for graph data endpoint.","example":{"edges":[{"from":"1","to":"2","type":"semantic","weight":0.8}],"nodes":[{"id":"1","label":"Alice works at Google","type":"world"},{"id":"2","label":"Bob went hiking","type":"world"}],"table_rows":[{"context":"Work info","date":"2024-01-15 10:30","entities":"Alice (PERSON), Google (ORGANIZATION)","id":"abc12345...","text":"Alice works at Google"}],"total_units":2}}}}},"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>


      