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

# Get Graph Viewport



## OpenAPI

````yaml https://api.crosmos.dev/openapi.json get /api/v1/graph
openapi: 3.1.0
info:
  title: Crosmos Memory API
  description: Agent memory system with hybrid retrieval
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/graph:
    get:
      tags:
        - graph
      summary: Get Graph Viewport
      operationId: get_graph_viewport_api_v1_graph_get
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            description: Max nodes to return
            default: 100
            title: Limit
          description: Max nodes to return
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
        - name: space_uuid
          in: query
          required: true
          schema:
            type: string
            format: uuid
            title: Space Uuid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphViewportResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    GraphViewportResponse:
      properties:
        nodes:
          items:
            $ref: '#/components/schemas/GraphNode'
          type: array
          title: Nodes
        edges:
          items:
            $ref: '#/components/schemas/GraphEdge'
          type: array
          title: Edges
        total_nodes:
          type: integer
          title: Total Nodes
        total_edges:
          type: integer
          title: Total Edges
      type: object
      required:
        - nodes
        - edges
        - total_nodes
        - total_edges
      title: GraphViewportResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    GraphNode:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        entity_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Entity Type
        edge_count:
          type: integer
          title: Edge Count
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
      type: object
      required:
        - id
        - name
        - entity_type
        - edge_count
      title: GraphNode
    GraphEdge:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        source_entity_id:
          type: string
          format: uuid
          title: Source Entity Id
        target_entity_id:
          type: string
          format: uuid
          title: Target Entity Id
        relation_type:
          type: string
          title: Relation Type
        confidence:
          type: number
          title: Confidence
        valid_from:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Valid From
        recorded_at:
          type: string
          format: date-time
          title: Recorded At
      type: object
      required:
        - id
        - source_entity_id
        - target_entity_id
        - relation_type
        - confidence
        - valid_from
        - recorded_at
      title: GraphEdge
    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
  securitySchemes:
    HTTPBearer:
      type: http
      description: JWT access token or API key (csk_…)
      scheme: bearer

````