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

# Get a conversation

> Returns conversation messages in chronological order. Pass `messageLimit` to request a bounded message window. Use `id=0` for your cross-scope view.

**Requires:** `scopes:read`



## OpenAPI

````yaml https://api.getmodus.com/openapi.json get /api/v1/scopes/{id}/conversations/{threadId}
openapi: 3.0.3
info:
  title: Modus Public API
  version: 1.0.0
servers: []
security:
  - bearerAuth: []
tags:
  - name: Scopes
    description: Create, configure, deploy, and manage scopes.
  - name: Scopes · Conversations
    description: Read scope conversation threads.
  - name: Scopes · Supervision
    description: Scope supervision sub-resource.
  - name: Scopes · Memories
    description: Long-term memory stored per scope.
  - name: Scopes · Chat
    description: Chat with a published scope.
  - name: Scopes · Context
    description: Compose a scope’s context without an LLM call.
  - name: Modus · Chat
    description: Chat with Modus — your org-wide assistant.
  - name: Modus · Conversations
    description: Read Modus and cross-scope conversation threads.
  - name: Modus · Context
    description: Compose full-environment context without an LLM call.
  - name: Workflows
    description: Create, configure, deploy, and manage workflows.
  - name: Workflows · Runs
    description: Inspect workflow run history.
  - name: Workflows · Interfaces
    description: Slack / MCP / Teams interface management.
  - name: Connections
    description: Read connected integrations.
  - name: Tools
    description: Catalog of tools/integrations a scope can select in its toolset.
  - name: Suggestions
    description: Approved suggested questions and first-party suggestion usage events.
  - name: Context
    description: Create and manage organization context items.
  - name: Usage
    description: Organization LLM usage reporting.
  - name: Users
    description: Organization and membership management.
  - name: Runs · Streaming
    description: 'Run lifecycle: stream, poll, resume, interrupt, and cancel executions.'
  - name: Scopes · Runs
    description: Run a published or draft scope.
  - name: Modus · Runs
    description: Run the Modus home agent.
paths:
  /api/v1/scopes/{id}/conversations/{threadId}:
    get:
      tags:
        - Scopes · Conversations
      summary: Get a conversation
      description: >-
        Returns conversation messages in chronological order. Pass
        `messageLimit` to request a bounded message window. Use `id=0` for your
        cross-scope view.


        **Requires:** `scopes:read`
      operationId: ScopeConversationsController_get
      parameters:
        - name: id
          required: true
          in: path
          description: Numeric scope id. Use 0 for cross-scope conversation lookup.
          schema:
            type: number
            example: 0
        - name: threadId
          required: true
          in: path
          description: >-
            Opaque thread/checkpoint id. The prefix, when present, is not
            authoritative ownership.
          schema:
            example: agent_42_abc-xyz
            type: string
        - name: messageLimit
          required: false
          in: query
          description: >-
            Return at most this many source messages from the conversation
            detail. Omit to return the full available conversation.
          schema:
            minimum: 1
            maximum: 100
            example: 30
            type: number
        - name: beforeMessageIndex
          required: false
          in: query
          description: >-
            Zero-based source-message index before which to load older messages.
            Requires messageLimit. Omit with messageLimit to load the latest
            window.
          schema:
            minimum: 0
            example: 120
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationDto'
        '400':
          description: >-
            Malformed request — invalid query parameters or request body (`code:
            BAD_REQUEST`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
              example:
                error:
                  code: BAD_REQUEST
                  status: INVALID_ARGUMENT
                  message: Invalid value for query parameter `pageSize`.
                  requestId: req_01HQ7K8ABCDEFGHIJKLMNOPQRS
        '401':
          description: 'Missing, invalid, or expired access token (`code: UNAUTHORIZED`).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
              example:
                error:
                  code: UNAUTHORIZED
                  status: UNAUTHENTICATED
                  message: Missing or invalid access token.
                  requestId: req_01HQ7K8ABCDEFGHIJKLMNOPQRS
        '403':
          description: >-
            Authenticated, but the token lacks a required scope (`code:
            FORBIDDEN`). The missing scopes are listed in `info`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
              example:
                error:
                  code: FORBIDDEN
                  status: PERMISSION_DENIED
                  message: Missing required scope(s) for this operation.
                  requestId: req_01HQ7K8ABCDEFGHIJKLMNOPQRS
                  info:
                    missing:
                      - <required-scope>
        '404':
          description: >-
            The resource does not exist, or you do not have access to it (`code:
            NOT_FOUND`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
              example:
                error:
                  code: NOT_FOUND
                  status: NOT_FOUND
                  message: Resource not found.
                  requestId: req_01HQ7K8ABCDEFGHIJKLMNOPQRS
        '500':
          description: 'An unexpected server error occurred (`code: INTERNAL_ERROR`).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
              example:
                error:
                  code: INTERNAL_ERROR
                  status: INTERNAL
                  message: An unexpected error occurred.
                  requestId: req_01HQ7K8ABCDEFGHIJKLMNOPQRS
      security:
        - bearerAuth: []
      servers:
        - url: https://api.getmodus.com
components:
  schemas:
    ConversationDto:
      type: object
      properties:
        threadId:
          type: string
          description: >-
            Opaque thread/checkpoint id. It is not owned by a single scope; a
            conversation can span multiple workflows.
          example: agent_42_abc-xyz
        scopeId:
          type: number
          description: >-
            Numeric scope id returned by the list/detail adapter. This is not
            conversation ownership.
          example: 42
        messages:
          description: Conversation turns, in chronological order.
          type: array
          items:
            $ref: '#/components/schemas/ConversationMessageDto'
        messageWindow:
          description: >-
            Present only when a bounded message window was requested and
            honored.
          allOf:
            - $ref: '#/components/schemas/ConversationMessageWindowDto'
        createdAt:
          type: string
          description: ISO-8601 timestamp of the first checkpoint for this thread.
          example: '2026-05-01T10:00:00.000Z'
        updatedAt:
          type: string
          description: ISO-8601 timestamp of the latest checkpoint for this thread.
          example: '2026-05-01T11:00:00.000Z'
      required:
        - threadId
        - scopeId
        - messages
        - createdAt
        - updatedAt
    ErrorResponseDto:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorEnvelopeDto'
      required:
        - error
    ConversationMessageDto:
      type: object
      properties:
        type:
          description: >-
            Message role. `human` and `ai` cover the user-visible turns;
            `system`, `tool`, and `unknown` are surfaced for completeness.
          example: human
          allOf:
            - $ref: '#/components/schemas/ConversationMessageType'
        content:
          type: string
          description: >-
            Message content. Usually a string for human turns; AI turns from
            newer LangChain versions may carry an array of content blocks (e.g.
            `[{type:"text",text:"…"}]`) instead. Consumers should handle both
            shapes.
          example: Run the churn analysis for last 30 days.
        id:
          type: string
          description: Stable identifier for this message turn, when available.
          example: msg_01HF8X3Z2K8E0
        toolCalls:
          type: array
          description: >-
            Tool invocations emitted by this message (AI turns). Shape mirrors
            the LangChain tool-call envelope.
        toolCallId:
          type: string
          description: Tool call id this message responds to (for `tool` turns).
      required:
        - type
        - content
    ConversationMessageWindowDto:
      type: object
      properties:
        startIndex:
          type: number
          description: >-
            Zero-based source-message index of the first returned message.
            Source-message indexes include non-visible tool and system messages.
          example: 90
        endIndex:
          type: number
          description: >-
            Exclusive zero-based source-message index after the last returned
            message.
          example: 120
        totalMessages:
          type: number
          description: >-
            Total source-message count used for paging. The returned visible
            message array can be shorter than endIndex - startIndex.
          example: 120
        hasMoreBefore:
          type: boolean
          description: Whether an older message window exists before startIndex.
          example: true
        hasMoreAfter:
          type: boolean
          description: Whether a newer message window exists after endIndex.
          example: false
      required:
        - startIndex
        - endIndex
        - totalMessages
        - hasMoreBefore
        - hasMoreAfter
    ErrorEnvelopeDto:
      type: object
      properties:
        code:
          description: Modus-specific machine code.
          allOf:
            - $ref: '#/components/schemas/ApiErrorCode'
        status:
          description: Canonical status string for the error.
          allOf:
            - $ref: '#/components/schemas/ApiErrorStatus'
        message:
          type: string
          example: Skill was not found or you lack permission.
        requestId:
          type: string
          example: req_01HQ7K8ABCDEFGHIJKLMNOPQRS
        info:
          type: object
          description: >-
            Optional domain-specific context. Shape varies per endpoint — see
            the operation's error response examples.
          additionalProperties: true
          example:
            skillId: sk_abc123
      required:
        - code
        - status
        - message
        - requestId
    ConversationMessageType:
      type: string
      enum:
        - human
        - ai
        - system
        - tool
        - unknown
      description: >-
        Message role. `human` and `ai` cover the user-visible turns; `system`,
        `tool`, and `unknown` are surfaced for completeness.
    ApiErrorCode:
      type: string
      enum:
        - VALIDATION
        - BAD_REQUEST
        - UNAUTHORIZED
        - FORBIDDEN
        - NOT_FOUND
        - CONFLICT
        - RATE_LIMITED
        - INTERNAL_ERROR
      description: Modus-specific machine code.
    ApiErrorStatus:
      type: string
      enum:
        - INVALID_ARGUMENT
        - UNAUTHENTICATED
        - PERMISSION_DENIED
        - NOT_FOUND
        - ALREADY_EXISTS
        - RESOURCE_EXHAUSTED
        - INTERNAL
      description: Canonical status string for the error.
  securitySchemes:
    bearerAuth:
      scheme: bearer
      bearerFormat: Modus PAT (modus_<orgUuid>_<prefix>_<secret>) or OAuth 2.1 access token
      type: http
      description: >-
        A Modus personal access token (`modus_<orgUuid>_<prefix>_<secret>`) or
        an OAuth 2.1 access token, sent as `Authorization: Bearer <token>`.

````