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

# Read a Bot message run

> Requires agents:invoke and assistant.use. Use a signed-in member session or a member's CLI token. Organization OAuth and Computer credentials cannot access personal Bots.

Returns the run's status, visible reply, and approval URL when available. Archived runs retain their status. Reopen their conversation to read the reply after the active run journal expires.



## OpenAPI

````yaml /openapi.json get /api/v1/bots/{botId}/runs/{runId}
openapi: 3.1.0
info:
  title: OmniCommerce API
  version: 1.0.0
  license:
    name: Proprietary
    url: https://omnicommerce.sg/terms
  description: >-
    OmniCommerce API surface for agents and developer integrations. Includes
    public endpoints (merchant discovery, product search, compare, catalog, ACO
    retrieval) and authenticated endpoints (product management via API key
    Bearer tokens).
servers:
  - url: https://omnicommerce.ai
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags:
  - name: ads
    description: ads
    x-group: Ads
  - name: agentic-checkout
    description: Merchant-fulfilled agentic checkout
    x-group: Agentic Checkout
  - name: agents
    description: agents
    x-group: Agents
  - name: analytics
    description: Sales performance across marketplaces
    x-group: Analytics
  - name: aops
    description: Agent operating procedures
    x-group: AOPs
  - name: bots
    description: bots
    x-group: Bots
  - name: branding
    description: branding
    x-group: Branding
  - name: campaigns
    description: Campaign briefs, offer windows, and marketplace runs
    x-group: Campaigns
  - name: catalog
    description: catalog
    x-group: Catalog
  - name: commerce
    description: commerce
    x-group: Commerce
  - name: developer-platform
    description: Authenticated developer platform APIs
    x-group: Developer Platform
  - name: documents
    description: Knowledge base document uploads
    x-group: Knowledge Base
  - name: email
    description: email
    x-group: Email
  - name: follow-ups
    description: follow-ups
    x-group: Follow Ups
  - name: inventory
    description: Inventory quantities, planning signals, and marketplace listing absence
    x-group: Inventory
  - name: looks
    description: AI-styled product looks
    x-group: Looks
  - name: oauth
    description: OAuth token endpoints
    x-group: OAuth
  - name: orders
    description: Workspace and agentic orders
    x-group: Orders
  - name: organizations
    description: Organization management
    x-group: Organizations
  - name: price-books
    description: Marketplace list-price markup rules
    x-group: Price Books
  - name: products
    description: Product CRUD, bulk import, enrichment, publish, and delist
    x-group: Products
  - name: promotions
    description: Central promotions and marketplace sync
    x-group: Promotions
  - name: public-agent
    description: Public agent discovery and catalog APIs
    x-group: Public Agent
  - name: returns
    description: returns
    x-group: Returns
  - name: review-queue
    description: review-queue
    x-group: Review Queue
  - name: reviews
    description: Marketplace product reviews and seller replies
    x-group: Reviews
  - name: scripts
    description: scripts
    x-group: Scripts
  - name: settlements
    description: settlements
    x-group: Settlements
  - name: ucp
    description: Universal Commerce Protocol
    x-group: UCP
  - name: wiki
    description: wiki
    x-group: Wiki
paths:
  /api/v1/bots/{botId}/runs/{runId}:
    get:
      tags:
        - bots
      summary: Read a Bot message run
      description: >-
        Requires agents:invoke and assistant.use. Use a signed-in member session
        or a member's CLI token. Organization OAuth and Computer credentials
        cannot access personal Bots.


        Returns the run's status, visible reply, and approval URL when
        available. Archived runs retain their status. Reopen their conversation
        to read the reply after the active run journal expires.
      operationId: get_v1_bots_by_botid_runs_by_runid
      parameters:
        - name: botId
          in: path
          required: true
          schema:
            type: string
        - name: runId
          in: path
          required: true
          schema:
            type: string
        - name: organizationId
          in: query
          required: false
          description: >-
            Required with session authentication. Otherwise use the
            authenticated organization.
          schema:
            type: string
            maxLength: 120
      responses:
        '200':
          description: The requested Bot message run.
          content:
            application/json:
              schema:
                type: object
                properties:
                  runId:
                    type: string
                    pattern: ^bot-message:[0-9a-f-]{36}$
                  threadId:
                    type: string
                  status:
                    type: string
                    enum:
                      - queued
                      - running
                      - completed
                      - failed
                      - cancelled
                  messages:
                    type: array
                    items:
                      type: string
                  memorySources:
                    maxItems: 3
                    type: array
                    items:
                      type: object
                      properties:
                        title:
                          type: string
                          minLength: 1
                          maxLength: 160
                        href:
                          type: string
                          format: starts_with
                          pattern: ^\/app\/.*
                        stale:
                          type: boolean
                      required:
                        - title
                        - href
                        - stale
                      additionalProperties: false
                  awaitingApproval:
                    type: boolean
                  approvalUrl:
                    type: string
                required:
                  - runId
                  - threadId
                  - status
                  - messages
                  - awaitingApproval
                additionalProperties: false
        '400':
          description: Invalid request or organization mismatch.
        '401':
          description: Authentication required.
        '403':
          description: The caller lacks access to this personal Bot.
        '404':
          description: Bots or the requested run are unavailable.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Bearer API key for server-to-server access. Session auth is also
        supported in first-party UI flows.

````

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