This resource represents a message. A message is sent by an Internal User or Client in the Messages App of your portal. Every message is sent inside of a [Message Channel](https://docs.copilot.app/reference/message-channels). This API resource describes the metadata of the message object.

The Messages App supports basic markdown-style formatting. Review the table below to see what exactly is supported and scroll down for a visual example.

Note that we don’t yet support sending or retrieving files attached to messages.

| Style            | Input Example                       | Rendered Text                      |
|------------------|------------------------------------|------------------------------------|
| Bold             | `Hi **there**`                     | Hi **there**                       |
| Italics          | `Hey _friend_`                     | Hey _friend_                       |
| Strikethrough    | `Hi ~~enemy~~ friend`              | Hi ~~enemy~~ friend                |
| Newline          | `Hi\n friend`                     | Hi<br>friend                       |
| Blockquote       | `> I think therefore I am`        | _"_ _I think therefore I am_      |
| Ordered List     | `1. Apples \n1. Bananas \n 1. Oranges` | 1. Apples<br>2. Bananas<br>3. Oranges |
| Unordered List   | `* Apples \n* Bananas \n* Oranges`  | • Apples<br>• Bananas<br>• Oranges  |
| Link             | `[Assembly](/content/site-root.html)` | [Assembly](/content/site-root.html)  |

## Properties

**id**`string`

The unique identifier for this item.

**createdAt**`string`

The date this item was created in RFC3339 format.

**object**`string`

The object type of this resource.

**senderId**`string`

The ID of the user that sent this message.

**channelId**`string`

The ID of the channel this message was sent in.

**text**`string`

The contents of the message exactly as it was input.

**isAttachmentIncluded**`boolean`

Indicates whether the message contains attachments. If a message has a link that is expanded as a preview in the UI, that is also considered an attachment.

Example Message Object

```json
{
  "id": "fbd5a90b-5216-4230-bcd2-0d6a746aeb65",
  "object": "message",
  "senderId": "1dbb3e36-af70-4f41-89e6-6ddf9e2c62b5",
  "createdAt": "2023-08-07T15:11:13.549092588Z",
  "updatedAt": "2023-08-07T15:11:13.549092588Z",
  "channelId": "602f5afd-2a42-47a4-a5e0-c3db0adf966a",
  "isAttachmentIncluded": true,
  "text": "**Urgent**!\n My favorite portal is [Assembly](/content/site-root.html). \n> Client portals are the way \n\n Because: \n* They are clean \n* They are easy to setup \n* They are a one stop shop"
}
```
