> ## 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 Case Linked Tables

> List the tables that have rows linked to a case, with their columns.

Only ``case:read`` is required: the links, and the column definitions needed
to render them, are case data.



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json get /workspaces/{workspace_id}/cases/{case_id}/rows/tables
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}/cases/{case_id}/rows/tables:
    get:
      tags:
        - cases
      summary: List Case Linked Tables
      description: >-
        List the tables that have rows linked to a case, with their columns.


        Only ``case:read`` is required: the links, and the column definitions
        needed

        to render them, are case data.
      operationId: cases-list_case_linked_tables
      parameters:
        - name: case_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Case Id
        - 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/CaseLinkedTableRead'
                title: Response Cases-List Case Linked Tables
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyCookie: []
        - ServiceAccountApiKeyBearer: []
components:
  schemas:
    CaseLinkedTableRead:
      properties:
        table_id:
          type: string
          format: uuid
          title: Table Id
        table_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Table Name
        row_count:
          type: integer
          title: Row Count
        columns:
          items:
            $ref: '#/components/schemas/TableColumnRead'
          type: array
          title: Columns
      type: object
      required:
        - table_id
        - row_count
        - columns
      title: CaseLinkedTableRead
      description: >-
        One table with at least one row linked to a case.


        ``row_count`` counts links, including links whose source row was
        deleted.


        ``columns`` carries the table's column definitions so a caller can
        render

        the linked rows without a separate table read. It is empty when the
        table

        itself is gone. ``is_index`` is not populated here; read the table
        directly

        when unique-index state matters.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TableColumnRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        type:
          $ref: '#/components/schemas/SqlType'
        nullable:
          type: boolean
          title: Nullable
          default: true
        default:
          anyOf:
            - {}
            - type: 'null'
          title: Default
        is_index:
          type: boolean
          title: Is Index
          default: false
        options:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Options
      type: object
      required:
        - id
        - name
        - type
      title: TableColumnRead
      description: Definition for a table column.
    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
    SqlType:
      type: string
      enum:
        - TEXT
        - INTEGER
        - NUMERIC
        - DATE
        - BOOLEAN
        - TIMESTAMPTZ
        - JSONB
        - SELECT
        - MULTI_SELECT
      title: SqlType
      description: Supported SQL types.
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: fastapiusersauth
    ServiceAccountApiKeyBearer:
      type: http
      description: Tracecat service account API key.
      scheme: bearer

````