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

# List Builtin Agent Session Views

> List the session views every workspace has, such as Approval required.



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json get /workspaces/{workspace_id}/agent/session-views/builtins
openapi: 3.1.0
info:
  title: Tracecat API
  summary: Tracecat API
  description: The open source AI automation platform for security teams and agents.
  termsOfService: >-
    https://docs.google.com/document/d/e/2PACX-1vQvDe3SoVAPoQc51MgfGCP71IqFYX_rMVEde8zC4qmBCec5f8PLKQRdxa6tsUABT8gWAR9J-EVs2CrQ/pub
  contact:
    name: Tracecat Founders
    email: founders@tracecat.com
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1'
servers:
  - url: /api
security: []
tags:
  - name: public
    description: Public facing endpoints
  - name: workflows
    description: Workflow management
  - name: actions
    description: Action management
  - name: triggers
    description: Workflow triggers
  - name: secrets
    description: Secret management
  - name: variables
    description: Workspace variable management
paths:
  /workspaces/{workspace_id}/agent/session-views/builtins:
    get:
      tags:
        - agent-session-views
      summary: List Builtin Agent Session Views
      description: List the session views every workspace has, such as Approval required.
      operationId: agent-session-views-list_builtin_agent_session_views
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workspace Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AgentSessionViewRead'
                title: Response Agent-Session-Views-List Builtin Agent Session Views
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyCookie: []
        - ServiceAccountApiKeyBearer: []
components:
  schemas:
    AgentSessionViewRead:
      properties:
        id:
          type: string
          title: Id
          description: A UUID for saved views, or a built-in view ID.
        kind:
          $ref: '#/components/schemas/ViewKind'
        name:
          type: string
          title: Name
        visibility:
          $ref: '#/components/schemas/ViewVisibility'
        owner_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Owner Id
        query:
          $ref: '#/components/schemas/AgentSessionViewQuery'
        order_by:
          anyOf:
            - $ref: '#/components/schemas/AgentSessionViewOrder'
            - type: 'null'
        sort:
          anyOf:
            - $ref: '#/components/schemas/ViewSort'
            - type: 'null'
        columns:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Columns
        can_edit:
          type: boolean
          title: Can Edit
          description: Whether the requesting user may rename, change, or delete it.
        pinned:
          type: boolean
          title: Pinned
          default: false
        pin_position:
          anyOf:
            - type: integer
            - type: 'null'
          title: Pin Position
        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
        - kind
        - name
        - visibility
        - query
        - can_edit
      title: ViewRead[AgentSessionViewQuery, AgentSessionViewOrder]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ViewKind:
      type: string
      enum:
        - builtin
        - custom
    ViewVisibility:
      type: string
      enum:
        - personal
        - workspace
      title: ViewVisibility
      description: Who can see a saved view.
    AgentSessionViewQuery:
      properties:
        search:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Search
        status:
          anyOf:
            - items:
                $ref: '#/components/schemas/AgentSessionStatusGroup'
              type: array
            - type: 'null'
          title: Status
        entity_type:
          anyOf:
            - $ref: '#/components/schemas/AgentSessionEntity'
            - type: 'null'
        created_by:
          anyOf:
            - type: string
              format: uuid
            - type: string
              const: me
            - type: 'null'
          title: Created By
          description: A user ID, or `me` for whoever opens the view.
        agent_preset_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Preset Id
        updated:
          anyOf:
            - $ref: '#/components/schemas/RelativeTimeFilter'
            - type: 'null'
        created:
          anyOf:
            - $ref: '#/components/schemas/RelativeTimeFilter'
            - type: 'null'
      additionalProperties: false
      type: object
      title: AgentSessionViewQuery
      description: The filters a session view applies to `/agent/sessions/search`.
    AgentSessionViewOrder:
      type: string
      enum:
        - updated_at
        - created_at
    ViewSort:
      type: string
      enum:
        - asc
        - desc
    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
    AgentSessionStatusGroup:
      type: string
      enum:
        - approval_required
        - running
        - error
        - completed
      title: AgentSessionStatusGroup
      description: |-
        Display status of a listed session.

        Derived from approval state and live workflow execution status, so
        membership cannot be expressed as a pure SQL filter.
    AgentSessionEntity:
      type: string
      enum:
        - case
        - agent_preset
        - agent_preset_builder
        - copilot
        - workflow
        - approval
        - external_channel
      title: AgentSessionEntity
      description: |-
        The type of entity associated with an agent session.

        Determines the context and behavior of the session:
        - CASE: Chat attached to a Case entity for investigation
        - AGENT_PRESET: Live chat testing a preset configuration
        - AGENT_PRESET_BUILDER: Builder chat for editing/configuring a preset
        - WORKSPACE_CHAT: Workspace-level chat assistant (wire value: copilot)
        - WORKFLOW: Workflow-initiated agent run (from action)
        - APPROVAL: Approval continuation (hidden from main chat list)
        - EXTERNAL_CHANNEL: External channel session (e.g. Slack thread)
    RelativeTimeFilter:
      properties:
        preset:
          anyOf:
            - type: string
              maxLength: 32
            - type: 'null'
          title: Preset
          description: A relative window owned by the UI, such as `1d` or `1w`.
        start:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Start
        end:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: End
      additionalProperties: false
      type: object
      title: RelativeTimeFilter
      description: 'A time window: a relative preset the UI resolves, or fixed bounds.'
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: fastapiusersauth
    ServiceAccountApiKeyBearer:
      type: http
      description: Tracecat service account API key.
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.