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

# Get thread detail

> Get all messages in a thread



## OpenAPI

````yaml /openapi.json get /v1/threads/{threadId}
openapi: 3.0.3
info:
  title: Emailr API
  version: 1.0.0
servers:
  - url: https://api.emailr.dev
    description: Production
security: []
tags:
  - name: emails
    description: Email sending and management
  - name: contacts
    description: Contact management
  - name: templates
    description: Email template management
  - name: domains
    description: Domain verification and management
  - name: webhooks
    description: Webhook configuration
  - name: broadcasts
    description: Broadcast campaign management
  - name: segments
    description: Contact segmentation
paths:
  /v1/threads/{threadId}:
    get:
      tags:
        - threads
      summary: Get thread detail
      description: Get all messages in a thread
      operationId: getThread
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: threadId
          in: path
      responses:
        '200':
          description: Thread detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThreadDetail'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    ThreadDetail:
      type: object
      properties:
        thread_id:
          type: string
          format: uuid
        subject:
          type: string
          nullable: true
        labels:
          type: array
          items:
            type: string
        messages:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              from_email:
                type: string
              to_email:
                type: string
              cc_emails:
                type: array
                nullable: true
                items:
                  type: string
              bcc_emails:
                type: array
                nullable: true
                items:
                  type: string
              subject:
                type: string
                nullable: true
              html_content:
                type: string
                nullable: true
              text_content:
                type: string
                nullable: true
              status:
                type: string
              labels:
                type: array
                items:
                  type: string
              tags:
                type: array
                items:
                  type: string
                default: []
              attachments:
                type: array
                nullable: true
                items: {}
              opens:
                type: array
                nullable: true
                items: {}
              clicked_links:
                type: array
                nullable: true
                items: {}
              opened_at:
                type: string
                nullable: true
              clicked_at:
                type: string
                nullable: true
              created_at:
                type: string
              sent_at:
                type: string
                nullable: true
            required:
              - id
              - from_email
              - to_email
              - cc_emails
              - bcc_emails
              - subject
              - html_content
              - text_content
              - status
              - labels
              - attachments
              - opens
              - clicked_links
              - opened_at
              - clicked_at
              - created_at
              - sent_at
      required:
        - thread_id
        - subject
        - labels
        - messages
    Error:
      type: object
      properties:
        error:
          type: string
          example: An error occurred
        code:
          type: string
          example: VALIDATION_ERROR
        details: {}
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API key authentication. Use your API key as the bearer token.

````