> ## 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.

# List Views

> List all saved canvas views for the authenticated user.

Returns:
    Saved canvas views ordered by creation time (newest first).



## OpenAPI

````yaml https://api.pragmatiks.io/openapi.json get /canvas/views
openapi: 3.1.0
info:
  title: Pragma API
  version: 0.1.0
servers: []
security: []
paths:
  /canvas/views:
    get:
      tags:
        - canvas
      summary: List Views
      description: |-
        List all saved canvas views for the authenticated user.

        Returns:
            Saved canvas views ordered by creation time (newest first).
      operationId: canvas-list_views
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CanvasViewsResponse'
components:
  schemas:
    CanvasViewsResponse:
      properties:
        views:
          items:
            $ref: '#/components/schemas/CanvasView'
          type: array
          title: Views
      type: object
      required:
        - views
      title: CanvasViewsResponse
      description: |-
        Response body for listing saved canvas views.

        Attributes:
            views: List of saved canvas views.
    CanvasView:
      properties:
        id:
          type: string
          title: Id
          default: ''
        name:
          type: string
          title: Name
        search_query:
          type: string
          title: Search Query
          default: ''
        filters:
          items:
            $ref: '#/components/schemas/FilterCriteria'
          type: array
          title: Filters
        pinned_node_ids:
          items:
            type: string
          type: array
          title: Pinned Node Ids
        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:
        - name
      title: CanvasView
      description: |-
        Persisted saved view for the canvas.

        Saved views capture a combination of search query, filters, and
        pinned nodes that users can restore later.

        Attributes:
            id: SurrealDB record identifier.
            name: User-assigned name for this view.
            search_query: Text search query to apply when restoring.
            filters: List of filter criteria to apply when restoring.
            pinned_node_ids: Resource IDs that should be pinned when restoring.
            created_at: Timestamp when the view was first saved.
            updated_at: Timestamp of last modification.
    FilterCriteria:
      properties:
        type:
          type: string
          title: Type
        value:
          type: string
          title: Value
      type: object
      required:
        - type
        - value
      title: FilterCriteria
      description: |-
        Single filter criterion for a saved canvas view.

        Attributes:
            type: Filter category (provider, status, resourceType, health).
            value: Filter value to match against.

````