# Create Message Request Payload

Schema: #/components/schemas/create_message_request

Method: SCHEMA
Version: 2.7
Security: bearerAuth

## Schema fields:

  - `message_type` (string)
    The kind of message being created. Values: `in_app` or `email`.
    Enum: "in_app", "email"

  - `subject` (string)
    The title of the email.
    Example: Thanks for everything

  - `body` (string)
    The content of the message. HTML and plaintext are supported.
    Example: Hello there

  - `template` (string)
    The style of the outgoing message. Possible values `plain` or `personal`.
    Example: plain

  - `from` (object)
    The sender of the message. If not provided, the default sender will be used.

  - `from.type` (string, required)
    Always `admin`.
    Enum: "admin"

  - `from.id` (integer, required)
    The identifier for the admin which is given by Intercom.
    Example: 394051

  - `to` (object)
    The sender of the message. If not provided, the default sender will be used.

  - `to.type` (string, required)
    The role associated to the contact - `user` or `lead`.
    Enum: "user", "lead"

  - `to.id` (string, required)
    The identifier for the contact which is given by Intercom.
    Example: 536e564f316c83104c000020

  - `create_conversation_without_contact_reply` (boolean)
    Whether a conversation should be opened in the inbox for the message without the contact replying. Defaults to false if not provided.
    Example: true

