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

# Get Positions

> Retrieve saved node positions for the authenticated user.

Returns empty positions if the user has no saved canvas state.

Returns:
    Saved node positions keyed by resource ID.



## OpenAPI

````yaml https://api.pragmatiks.io/openapi.json get /canvas/positions
openapi: 3.1.0
info:
  title: Pragma API
  version: 0.1.0
servers: []
security: []
paths:
  /canvas/positions:
    get:
      tags:
        - canvas
      summary: Get Positions
      description: |-
        Retrieve saved node positions for the authenticated user.

        Returns empty positions if the user has no saved canvas state.

        Returns:
            Saved node positions keyed by resource ID.
      operationId: canvas-get_positions
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CanvasPositionsResponse'
components:
  schemas:
    CanvasPositionsResponse:
      properties:
        positions:
          additionalProperties:
            $ref: '#/components/schemas/NodePosition'
          type: object
          title: Positions
      type: object
      title: CanvasPositionsResponse
      description: |-
        Response body for canvas position queries.

        Attributes:
            positions: Map of resource ID to node position.
    NodePosition:
      properties:
        x:
          type: number
          title: X
        'y':
          type: number
          title: 'Y'
        pinned:
          type: boolean
          title: Pinned
          default: false
      type: object
      required:
        - x
        - 'y'
      title: NodePosition
      description: |-
        Position and pin state for a single node on the canvas.

        Attributes:
            x: Horizontal position in canvas coordinates.
            y: Vertical position in canvas coordinates.
            pinned: Whether the node is excluded from auto-layout.

````