# Message

A message is a piece of text that a user can send to a conversation.

<pre class="language-javascript"><code class="lang-javascript"><strong>{
</strong>    id: "63bfe95c3c5365e628c0a4c4",
    user_id: "8843223323423",
    text: "Hit the road Jack!",
    file: {
        type: "image",
        url: "https://urltofile.com/image.jpeg",
        name: "Assignment Project",
        size: "2 MB",
    },
    chat_id: "cfhdfd3423jkf",
    created_at: "2023-01-12T11:05:00.145Z"
<strong>}
</strong></code></pre>

<table><thead><tr><th width="159">Field</th><th width="155.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td><code>string</code></td><td>The id of the message</td></tr><tr><td><code>text</code></td><td><code>string</code></td><td>The text content of the message</td></tr><tr><td><code>file</code></td><td><a href="file"><code>File</code></a></td><td>The file associated with this message</td></tr><tr><td><code>created_at</code></td><td><code>string</code></td><td>The ISO Date the message was sent</td></tr><tr><td><code>user_id</code></td><td><code>string</code></td><td>The id of the user that sent the message</td></tr><tr><td><code>chat_id</code></td><td><code>string</code></td><td>the id of the chat that this message is being sent in</td></tr><tr><td><code>metadata</code></td><td><code>json object</code></td><td>an optional key value pair for any additional message information such as custom font size, font type, or <code>JSON</code> formatted string. accepts string,number and boolean values</td></tr></tbody></table>
