> ## 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.

# Mark thread read

> Marks a thread as read for its owner (clears the unread badge), or unread again with `{ "unread": true }`. Call it with the owning user's session token. 403 otherwise.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/threads/{id}/read
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/{id}/read:
    post:
      tags:
        - Chat
      summary: Mark thread read
      description: >-
        Marks a thread as read for its owner (clears the unread badge), or
        unread again with `{ "unread": true }`. Call it with the owning user's
        session token. 403 otherwise.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: thread_2f81c04a
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                unread:
                  type: boolean
                  description: true to mark unread again (default false = mark read)
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  threadId:
                    type: string
                  unread:
                    type: boolean
        '400':
          description: Missing organization context
        '403':
          description: The caller does not act for the thread's owner
        '404':
          description: Thread not found in this organization
      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.

````