# Conversation source

Schema: #/components/schemas/conversation_source

Method: SCHEMA
Version: 2.7
Security: bearerAuth

## Schema fields:

  - `type` (string)
    This includes conversation, email, facebook, instagram, phone_call, phone_switch, push, sms, twitter and whatsapp.
    Enum: "conversation", "email", "facebook", "instagram", "phone_call", "phone_switch", "push", "sms", "twitter", "whatsapp"

  - `id` (string)
    The id representing the message.
    Example: 3

  - `delivered_as` (string)
    The conversation's initiation type. Possible values are customer_initiated, campaigns_initiated (legacy campaigns), operator_initiated (Custom bot), automated (Series and other outbounds with dynamic audience message) and admin_initiated (fixed audience message, ticket initiated by an admin, group email).
    Example: operator_initiated

  - `subject` (string)
    Optional. The message subject. For Twitter, this will show a generic message regarding why the subject is obscured.

  - `body` (string)
    The message body, which may contain HTML. For Twitter, this will show a generic message regarding why the body is obscured.
    Example: <p>Hey there!</p>

  - `author` (object)
    The object who initiated the conversation, which can be a Contact, Admin or Team. Bots and campaigns send messages on behalf of Admins or Teams. For Twitter, this will be blank.

  - `author.type` (string)
    The type of the author
    Example: admin

  - `author.id` (string)
    The id of the author
    Example: 274

  - `author.name` (string)
    The name of the author. `null` if the author is a contact that has since been archived or deleted.
    Example: Operator

  - `author.email` (string)
    The email of the author. `null` if the author is a contact that has since been archived or deleted.
    Example: operator+abcd1234@intercom.io

  - `attachments` (array)
    A list of attachments for the part.

  - `attachments.type` (string)
    The type of attachment
    Example: upload

  - `attachments.name` (string)
    The name of the attachment
    Example: example.png

  - `attachments.url` (string)
    The URL of the attachment
    Example: https://picsum.photos/200/300

  - `attachments.content_type` (string)
    The content type of the attachment
    Example: image/png

  - `attachments.filesize` (integer)
    The size of the attachment
    Example: 100

  - `attachments.width` (integer)
    The width of the attachment
    Example: 100

  - `attachments.height` (integer)
    The height of the attachment
    Example: 100

  - `url` (string)
    The URL where the conversation was started. For Twitter, Email, and Bots, this will be blank.
    Example: null

  - `redacted` (boolean)
    Whether or not the source message has been redacted. Only applicable for contact initiated messages.
    Example: false

