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

# Read a conversation thread's control mode

> The mode in force for ``thread_id`` on ``route_name`` and where it comes from:
``{"mode", "source"}``, ``source`` being ``thread`` for a per-thread override and
``route`` for the no-override default. A route-keyed thread's default is the route's
``initial_mode``; a LINKED person's aggregated thread defaults to ``manual`` when ANY
route the person spans defaults to ``manual``, else ``agent``.

The thread-belongs-to-route guard is the thread delete's: a route-keyed id off the route
is a 400, a person thread off the named route a 404. An unknown route is a loud 404; a
blank ``thread_id`` a 400.



## OpenAPI

````yaml /openapi.json get /api/conversations/{route_name}/thread/mode
openapi: 3.1.0
info:
  description: The operator HTTP surface served under /api/*.
  title: tai42-skeleton API
  version: 14.0.2
servers: []
security: []
paths:
  /api/conversations/{route_name}/thread/mode:
    get:
      tags:
        - conversations
      summary: Read a conversation thread's control mode
      description: >-
        The mode in force for ``thread_id`` on ``route_name`` and where it comes
        from:

        ``{"mode", "source"}``, ``source`` being ``thread`` for a per-thread
        override and

        ``route`` for the no-override default. A route-keyed thread's default is
        the route's

        ``initial_mode``; a LINKED person's aggregated thread defaults to
        ``manual`` when ANY

        route the person spans defaults to ``manual``, else ``agent``.


        The thread-belongs-to-route guard is the thread delete's: a route-keyed
        id off the route

        is a 400, a person thread off the named route a 404. An unknown route is
        a loud 404; a

        blank ``thread_id`` a 400.
      operationId: get_api_conversations_route_name_thread_mode
      parameters:
        - in: path
          name: route_name
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/ThreadModeView'
                required:
                  - data
                type: object
          description: Success.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Malformed request.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid api key.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Resource not found.
        '501':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ThreadModeView:
      description: >-
        A thread's control mode and where it comes from — ``source`` is
        ``thread`` for a

        per-thread override or ``route`` for the route default.
      properties:
        mode:
          title: Mode
          type: string
        source:
          title: Source
          type: string
      required:
        - mode
        - source
      title: ThreadModeView
      type: object
    Error:
      properties:
        code:
          description: >-
            Stable machine-readable reason a client keys a dedicated error state
            on, present on refusals that opt in (e.g. a 501 not-configured
            refusal). Optional: absent when the error carries only a
            human-readable message.
          type: string
        error:
          type: string
      required:
        - error
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````