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

# List threads

> Returns a paginated list of conversation threads for the authenticated user. Requires authentication.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/threads
openapi: 3.1.0
info:
  title: Sidenet API
  version: 1.0.0
  description: >-
    Sidenet HTTP endpoints exposed by the Sidenet Studio. All routes require an
    api key that can be generated through the studio in studio.sidenet.ai.
servers:
  - url: https://api.sidenet.ai
security:
  - bearerAuth: []
paths:
  /v1/threads:
    get:
      tags:
        - Chat
      summary: List threads
      description: >-
        Returns a paginated list of conversation threads for the authenticated
        user. Requires authentication.
      parameters:
        - name: page
          in: query
          required: false
          description: Page number (default 1)
          schema:
            type: number
            minimum: 1
            default: 1
        - name: perPage
          in: query
          required: false
          description: Items per page (default 20, max 100)
          schema:
            type: number
            minimum: 1
            maximum: 100
            default: 20
        - name: orderBy
          in: query
          required: false
          description: 'Field to order by: createdAt or updatedAt (default updatedAt)'
          schema:
            type: string
            enum:
              - createdAt
              - updatedAt
            default: updatedAt
        - name: order
          in: query
          required: false
          description: 'Sort order: asc or desc (default desc)'
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
        - name: threadId
          in: query
          required: false
          description: Filter by specific thread ID
          schema:
            type: string
            example: thread_2f81c04a
        - name: source
          in: query
          required: false
          description: >-
            Only threads whose metadata.source matches — e.g. `workflow` for
            scheduled-workflow result threads.
          schema:
            type: string
            example: workflow
        - name: unread
          in: query
          required: false
          description: >-
            true → only threads the user has not read yet (metadata.unread);
            false → only read ones.
          schema:
            type: boolean
      responses:
        '200':
          description: Paginated list of threads
          content:
            application/json:
              schema:
                type: object
                properties:
                  threads:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        title:
                          type: string
                        resourceId:
                          type: string
                        createdAt:
                          type: string
                          format: date-time
                        updatedAt:
                          type: string
                          format: date-time
                        metadata:
                          type: object
                  page:
                    type: number
                  perPage:
                    type: number
                  total:
                    type: number
                  hasMore:
                    type: boolean
        '400':
          description: Bad request - missing organization or user ID
        '500':
          description: Internal server error
      security:
        - sessionToken: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key, generated in studio.sidenet.ai. Backend only —
        never in a browser.
    sessionToken:
      type: http
      scheme: bearer
      description: >-
        Session token (`snat_…`) minted by POST /v1/token. Carries the
        organization and the end user; safe in a browser.

````