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

# Get entity graph context

> Returns neighbouring nodes and relationships for an entity. Use depth=none for the root node only, depth=immediate for 1-hop neighbours.



## OpenAPI

````yaml /api-reference/memory-api.json get /v1/memory/entity/{entity_id}/graph
openapi: 3.1.0
info:
  title: Strattum Memory API
  description: >-
    REST API that serves entity context — profile, timeline, graph, sources and
    formatted context — for agents and UIs. (PRD-003, Workstream 1.3)
  version: 1.0.0
servers: []
security: []
paths:
  /v1/memory/entity/{entity_id}/graph:
    get:
      tags:
        - memory
      summary: Get entity graph context
      description: >-
        Returns neighbouring nodes and relationships for an entity. Use
        depth=none for the root node only, depth=immediate for 1-hop neighbours.
      operationId: get_graph_v1_memory_entity__entity_id__graph_get
      parameters:
        - name: entity_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Entity Id
        - name: depth
          in: query
          required: false
          schema:
            type: string
            description: 'Traversal depth: ''none'' or ''immediate'''
            default: immediate
            title: Depth
          description: 'Traversal depth: ''none'' or ''immediate'''
        - name: relationship_types
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: string
              - type: 'null'
            description: Filter by relationship type(s)
            title: Relationship Types
          description: Filter by relationship type(s)
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            description: Max neighbour relationships to return
            default: 50
            title: Limit
          description: Max neighbour relationships to return
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GraphResponse:
      properties:
        entity_id:
          type: string
          title: Entity Id
        nodes:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Nodes
        relationships:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Relationships
      type: object
      required:
        - entity_id
        - nodes
        - relationships
      title: GraphResponse
      description: Response for GET /entity/{entity_id}/graph.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````