> ## 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.

# Delivery event audit trail for a single email message

> Path param is the Nylas ``provider_message_id``. Org-scoping
happens via the JOIN to ``EmailChannelAccount`` inside the service.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/email/messages/{message_id}/events
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/messages/{message_id}/events:
    get:
      tags:
        - email
      summary: Delivery event audit trail for a single email message
      description: |-
        Path param is the Nylas ``provider_message_id``. Org-scoping
        happens via the JOIN to ``EmailChannelAccount`` inside the service.
      operationId: listEmailMessageEvents
      parameters:
        - name: message_id
          in: path
          required: true
          schema:
            type: string
            title: Message Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListMessageEventsResponse'
        '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:
    ListMessageEventsResponse:
      properties:
        provider_message_id:
          type: string
          title: Provider Message Id
        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
        events:
          items:
            $ref: '#/components/schemas/MessageEventResponse'
          type: array
          title: Events
      additionalProperties: false
      type: object
      required:
        - provider_message_id
        - delivery_status
        - delivery_status_at
      title: ListMessageEventsResponse
      description: |-
        All recorded events for a single outbound message.

        Pairs the canonical headline state (``delivery_status``,
        ``delivery_status_at`` from the parent ``ConversationTurn``) with the
        full append-only audit trail. The headline is the source of truth
        for "what state is the message in *now*"; the audit is the timeline.
    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
    MessageEventResponse:
      properties:
        event_type:
          type: string
          title: Event Type
        occurred_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Occurred At
        vendor_event_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Vendor Event Type
        payload:
          additionalProperties: true
          type: object
          title: Payload
      additionalProperties: false
      type: object
      required:
        - event_type
      title: MessageEventResponse
      description: |-
        One row in the append-only ``EmailChannelTurn.provider_events`` audit.

        The schema is intentionally permissive — the JSONB shape evolved
        over ENG-422 and is documented in
        ``src.communication.email.providers``. ``payload`` carries the
        original event minus the fields promoted here.
    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
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````