# Email Message Metadata

> This is a subset of the full specification, limited to the `source_email_message_metadata` schema.
>
> You can find the full specification here: /_bundle/docs/references/@2.16/rest-api/api.intercom.io.yaml

```yaml
openapi: 3.0.1
info:
  title: Intercom API
  version: '2.16'
  description: This is a subset of the full specification, limited to the `source_email_message_metadata` schema.
  contact:
    name: Intercom Developer Hub
    url: https://developers.intercom.com
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
servers:
  - url: https://api.intercom.io
    description: The production API server
  - url: https://api.eu.intercom.io
    description: The european API server
  - url: https://api.au.intercom.io
    description: The australian API server
security:
  - bearerAuth: []
paths: {}
components:
  schemas:
    source_email_message_metadata:
      title: Email Message Metadata
      type: object
      description: Contains metadata if the message was sent as an email
      properties:
        message_id:
          type: string
          nullable: true
          description: The unique identifier for the email message as specified in the Message-ID header
          example: <CADKw7xrXzqSn8v3mP8K8Q8yZ6K8Q8yZ6@mail.gmail.com>
        subject:
          type: string
          description: The subject of the email
          example: Question about my order
        email_address_headers:
          title: Email Address Headers
          type: array
          description: A list of an email address headers.
          items:
            $ref: '#/components/schemas/email_address_header'
        history:
          type: string
          description: The HTML content of any quoted or forwarded email history from the initial inbound message
          example: <div><span>On Jan 28, wrote:</span><blockquote>Previous thread</blockquote></div>
    email_address_header:
      title: Email Address Header
      type: object
      description: Contains data for an email address header for a conversation part that was sent as an email.
      properties:
        type:
          type: string
          description: The type of email address header
          example: from
        email_address:
          type: string
          description: The email address
          example: jdoe@example.com
        name:
          type: string
          nullable: true
          description: The name associated with the email address
          example: Joe Example
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
