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

# List threads

> List threads for one end user. An API token requires user_id and lists that user's API sessions. limit defaults to 50 and cannot exceed 100. page is zero-based. terms is a free-text search of at most 10 strings.



## OpenAPI

````yaml /openapi.json get /chat
openapi: 3.1.0
info:
  title: cominty/cominty
  description: |

    ### Cominty Meta:

    ```json
    {
      "VERSION_TAG": "eng-997-add-organization-scoped-memory-namespaces.6928eb8",
      "VERSION_AT": "2026-10-07T14:46:28+02:00",
      "DEPLOYED_BY": "github-actions::elfominty",
      "DEPLOYED_AT": "2026-10-07T13:06:50Z",
      "AWS_SECRET_NAME": "cominty-monorepo-dev-python-api",
      "AWS_SECRET_VERSION": "3de071f4-5485-4bf2-a676-0f72bf7aa59f",
      "AWS_SECRET_REGION": "eu-west-3"
    }
    ```
  version: eng-997-add-organization-scoped-memory-namespaces.6928eb8
servers:
  - url: https://ds.cominty.com
security:
  - comintyToken: []
paths:
  /chat:
    get:
      tags:
        - chat
        - chat
      summary: List threads
      description: >-
        List threads for one end user. An API token requires user_id and lists
        that user's API sessions. limit defaults to 50 and cannot exceed 100.
        page is zero-based. terms is a free-text search of at most 10 strings.
      operationId: get_threads_chat_get
      parameters:
        - name: user_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: User Id
          description: End user whose threads to list. Required for an API token.
        - name: platform
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/ChatPlatform'
              - type: 'null'
            title: Platform
          description: >-
            Product surface of the threads. An API token always lists api
            sessions, so you can omit this.
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            default: 50
            title: Limit
          description: Page size. Defaults to 50. Maximum 100.
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 0
            title: Page
          description: Zero-based page index.
        - name: terms
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
            maxItems: 10
            title: Terms
          description: Free-text search terms. At most 10 strings.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ThreadSummaryOut'
                title: Response Get Threads Chat Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ChatPlatform:
      type: string
      enum:
        - portal
        - api
      title: ChatPlatform
      description: >-
        api sessions are what an API token can list. portal is not used with an
        API token.
    ThreadSummaryOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        created_at:
          type: string
          format: date-time
          title: Created At
        live:
          type: boolean
          title: Live
        starred:
          type: boolean
          title: Starred
        inception:
          type: string
          enum:
            - conversational
            - routine
          title: Inception
          readOnly: true
      additionalProperties: false
      type: object
      required:
        - id
        - name
        - created_at
        - live
        - starred
        - inception
      title: ThreadSummaryOut
    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:
    comintyToken:
      type: apiKey
      in: header
      name: x-cominty-token
      description: >-
        A Cominty Platform API secret. A key created now starts with sk-cmt-.
        Send it as is, or as Bearer sk-cmt-..., with at most one Bearer prefix.
        A key created before the prefix existed has no sk-cmt- and still works.

````

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