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

# List Decisions

> Decisions of a member workspace, most recently changed first.

Unlike findings, no state filter is applied by default: the dashboard's
value here is the whole lifecycle at once (what is live, what is still in
the gate, what was rejected), so narrowing is opt-in.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/workspaces/{workspace_id}/decisions
openapi: 3.1.0
info:
  title: Visceral Backend
  version: 0.2.0
  description: >-
    The Visceral backend HTTP API. SDK and ingestion endpoints authenticate with
    a workspace API key; dashboard endpoints authenticate with a user session
    token. Both are sent as `Authorization: Bearer <token>`.
servers:
  - url: https://api.visceralai.dev
security: []
paths:
  /v1/workspaces/{workspace_id}/decisions:
    get:
      tags:
        - decisions
      summary: List Decisions
      description: >-
        Decisions of a member workspace, most recently changed first.


        Unlike findings, no state filter is applied by default: the dashboard's

        value here is the whole lifecycle at once (what is live, what is still
        in

        the gate, what was rejected), so narrowing is opt-in.
      operationId: list_decisions_v1_workspaces__workspace_id__decisions_get
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workspace Id
        - name: type
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Type
        - name: state
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: State
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            maximum: 100000
            minimum: 0
            default: 0
            title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DecisionInfo'
                title: >-
                  Response List Decisions V1 Workspaces  Workspace Id  Decisions
                  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - sessionToken: []
components:
  schemas:
    DecisionInfo:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        task_type_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Task Type Id
        type:
          type: string
          title: Type
        state:
          type: string
          title: State
        previous_state:
          anyOf:
            - type: string
            - type: 'null'
          title: Previous State
        config:
          additionalProperties: true
          type: object
          title: Config
        shadow_samples:
          type: integer
          title: Shadow Samples
        shadow_match_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Shadow Match Rate
        cost_delta_usd:
          anyOf:
            - type: number
            - type: 'null'
          title: Cost Delta Usd
        latency_delta_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: Latency Delta Ms
        quality_delta:
          anyOf:
            - type: number
            - type: 'null'
          title: Quality Delta
        score:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Score
        proposed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Proposed At
        shadow_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Shadow At
        activated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Activated At
        disabled_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Disabled At
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - task_type_id
        - type
        - state
        - previous_state
        - config
        - shadow_samples
        - shadow_match_rate
        - cost_delta_usd
        - latency_delta_ms
        - quality_delta
        - score
        - proposed_at
        - shadow_at
        - activated_at
        - disabled_at
        - created_at
      title: DecisionInfo
    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
  securitySchemes:
    sessionToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Short-lived user access token (ES256 JWT) issued by `POST
        /v1/auth/login`.

````