> ## Documentation Index
> Fetch the complete documentation index at: https://openmail-docs-reputation-lifecycle-webhooks.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get thread messages

> Retrieve a thread and all of its messages in order, with read status and full message content.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/threads/{id}/messages
openapi: 3.0.3
info:
  title: OpenMail API
  description: >-
    Email infrastructure API for AI agents. Create inboxes, send and receive
    email, and get real-time notifications via webhooks.
  version: 1.0.0
  license:
    name: Proprietary
servers:
  - url: https://api.openmail.sh
security:
  - bearerAuth: []
paths:
  /v1/threads/{id}/messages:
    get:
      summary: Get thread messages
      description: >-
        Retrieve a thread and all of its messages in order, with read status and
        full message content.
      operationId: getThreadMessages
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Thread with messages
          content:
            application/json:
              schema:
                type: object
                properties:
                  threadId:
                    type: string
                  subject:
                    type: string
                  isRead:
                    type: boolean
                    description: Whether the thread has been marked as read
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Message'
components:
  schemas:
    Message:
      type: object
      properties:
        id:
          type: string
        threadId:
          type: string
        direction:
          type: string
          enum:
            - inbound
            - outbound
        fromAddr:
          type: string
        toAddr:
          type: string
          description: >-
            Your OpenMail inbox address for inbound messages. For outbound
            sends, the primary recipient.
        headerTo:
          type: string
          nullable: true
          description: >-
            Inbound only. The address the sender wrote to (comma-separated if
            multiple). When deliveryRole is cc, reply to this address — not
            fromAddr.
        deliveryRole:
          type: string
          enum:
            - to
            - cc
          nullable: true
          description: >-
            Inbound only. to if your inbox was the main recipient; cc if you
            were copied on the email.
        cc:
          type: array
          items:
            type: string
          description: Email addresses copied on the message.
        subject:
          type: string
        bodyText:
          type: string
        bodyHtml:
          type: string
        attachments:
          type: array
          items:
            type: object
            properties:
              filename:
                type: string
              contentType:
                type: string
              sizeBytes:
                type: integer
              url:
                type: string
                description: Signed URL for download
        status:
          type: string
          enum:
            - pending
            - sent
            - received
            - failed
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key

````