# Conversation source

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

```yaml
openapi: 3.0.1
info:
  title: Intercom API
  version: '2.17'
  description: This is a subset of the full specification, limited to the `conversation_source` 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:
    conversation_source:
      title: Conversation source
      type: object
      description: The type of the conversation part that started this conversation. Can be Contact, Admin, Campaign, Automated or Operator initiated.
      properties:
        type:
          type: string
          description: The origin of this conversation.
          example: email
        id:
          type: string
          nullable: true
          description: The id of the source message.
          example: '3'
        delivered_as:
          type: string
          description: How the conversation was initiated.
          example: operator_initiated
        recipients:
          type: array
          nullable: true
          description: The recipients of the source message. Only present for email conversations.
          items:
            type: object
            properties:
              type:
                type: string
                description: The recipient type. One of `to`, `cc`, or `bcc`.
                example: to
              email:
                type: string
                format: email
                description: The recipient email address.
                example: user@example.com
              drop_reason:
                type: string
                nullable: true
                description: The reason this recipient was dropped, if applicable.
                example: null
        reply_to:
          type: array
          nullable: true
          description: The Reply-To header addresses of the source message, where a reply will be routed. Can differ from the sender's From address. Only present for email conversations.
          items:
            type: object
            properties:
              email:
                type: string
                format: email
                description: The Reply-To email address.
                example: replies@example.com
              name:
                type: string
                nullable: true
                description: The display name associated with the Reply-To address.
                example: Support Team
        subject:
          type: string
          description: Optional. The message subject. For Twitter, this will show a generic message regarding why the subject is obscured. In webhook payloads for API version 2.15+, this field returns plain text.
          example: ''
        body:
          type: string
          description: The message body, which may contain HTML. For Twitter, this will show a generic message regarding why the body is obscured. In webhook payloads for API version 2.15+, this field returns plain text.
          example: <p>Hey there!</p>
        author:
          $ref: '#/components/schemas/conversation_source_author'
        attachments:
          type: array
          description: A list of attachments for the part.
          items:
            $ref: '#/components/schemas/part_attachment'
        url:
          type: string
          nullable: true
          description: The URL where the conversation was started. For Twitter, Email, and Bots, this will be blank.
          example: null
        redacted:
          type: boolean
          description: Whether or not the source message has been redacted. Only applicable for contact initiated messages.
          example: false
        email_message_metadata:
          $ref: '#/components/schemas/source_email_message_metadata'
    conversation_source_author:
      title: Conversation source author
      type: object
      description: The author who started the conversation. Can be a Contact, Admin, or Bot.
      properties:
        type:
          type: string
          description: The type of the author.
          example: admin
        id:
          type: string
          nullable: true
          description: The id of the author.
          example: '274'
        name:
          type: string
          nullable: true
          description: The name of the author.
          example: Jane Doe
        email:
          type: string
          format: email
          nullable: true
          description: The email of the author.
          example: jane.doe@example.com
    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
    part_attachment:
      title: Part attachment
      type: object
      description: The file attached to a part
      properties:
        type:
          type: string
          description: The type of attachment
          example: upload
        name:
          type: string
          description: The name of the attachment
          example: example.png
        url:
          type: string
          description: The URL of the attachment
          example: https://picsum.photos/200/300
        content_type:
          type: string
          description: The content type of the attachment
          example: image/png
        filesize:
          type: integer
          description: The size of the attachment
          example: 100
        width:
          type: integer
          description: The width of the attachment
          example: 100
        height:
          type: integer
          description: The height of the attachment
          example: 100
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
