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

# Read an email thread by Nylas provider_thread_id



## OpenAPI

````yaml /api-reference/openapi.json get /v1/email/threads/{thread_id}
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/email/threads/{thread_id}:
    get:
      tags:
        - email
      summary: Read an email thread by Nylas provider_thread_id
      operationId: getEmailThread
      parameters:
        - name: thread_id
          in: path
          required: true
          schema:
            type: string
            title: Thread Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThreadResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ThreadResponse:
      properties:
        provider_thread_id:
          type: string
          title: Provider Thread Id
        session_id:
          type: string
          format: uuid
          title: Session Id
        subject:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject
        participants:
          items:
            type: string
          type: array
          title: Participants
        message_count:
          type: integer
          title: Message Count
        last_message_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Message At
        messages:
          items:
            $ref: >-
              #/components/schemas/src__communication__email__threads__schemas__MessageResponse
          type: array
          title: Messages
      additionalProperties: false
      type: object
      required:
        - provider_thread_id
        - session_id
        - subject
        - message_count
        - last_message_at
        - messages
      title: ThreadResponse
      description: |-
        Thread snapshot.

        ``participants`` is derived from the union of senders / recipients
        across the thread's messages (lowercased addresses, dedup, order =
        first-seen).
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    src__communication__email__threads__schemas__MessageResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        direction:
          type: string
          enum:
            - inbound
            - outbound
          title: Direction
        provider_message_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Provider Message Id
        provider_thread_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Provider Thread Id
        rfc822_message_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Rfc822 Message Id
        in_reply_to_header:
          anyOf:
            - type: string
            - type: 'null'
          title: In Reply To Header
        from_address:
          type: string
          title: From Address
        to_addresses:
          items:
            $ref: '#/components/schemas/EmailAddress'
          type: array
          title: To Addresses
        cc_addresses:
          items:
            $ref: '#/components/schemas/EmailAddress'
          type: array
          title: Cc Addresses
        bcc_addresses:
          items:
            $ref: '#/components/schemas/EmailAddress'
          type: array
          title: Bcc Addresses
        subject:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject
        content:
          type: string
          title: Content
        triage_decision:
          anyOf:
            - type: string
            - type: 'null'
          title: Triage Decision
        triage_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Triage Reason
        delivery_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Delivery Status
        delivery_status_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Delivery Status At
        sent_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Sent At
        received_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Received At
        created_at:
          type: string
          format: date-time
          title: Created At
      additionalProperties: false
      type: object
      required:
        - id
        - direction
        - provider_message_id
        - provider_thread_id
        - rfc822_message_id
        - in_reply_to_header
        - from_address
        - subject
        - content
        - triage_decision
        - triage_reason
        - delivery_status
        - delivery_status_at
        - sent_at
        - received_at
        - created_at
      title: MessageResponse
      description: |-
        One message in a thread.

        ``content`` carries the brain's view — post-ContentNormalizer (ENG-417)
        this is the quoted-history-stripped text. Full-fidelity provider
        payloads live in ``raw_storage_object_id`` references on the inbound
        event but aren't surfaced here in v1.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    EmailAddress:
      properties:
        address:
          type: string
          maxLength: 320
          pattern: ^[^@\s]+@[^@\s]+\.[^@\s]+$
          title: Address
        name:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
          title: Name
      additionalProperties: false
      type: object
      required:
        - address
      title: EmailAddress
      description: A single RFC 5321 mailbox + optional display name.
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````