> ## Documentation Index
> Fetch the complete documentation index at: https://developer.affinity.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat Messages

Includes all chat messages tracked in Affinity with sender, direction, and metadata.

**Name:** `v1_0.chat_messages`

<Warning>
  Grant access to the share only to users who are authorized to view all
  organization data. There are no per-user or per-role visibility filters applied at the
  share level.
</Warning>

## Columns

| Column            | Description                                                                                                                                                                                  |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`              | Unique identifier for the chat message                                                                                                                                                       |
| `logging_type`    | Indicates how the interaction was added to Affinity: either manually by a user or automatically through Affinity's capture process. Currently, chat messages can only be logged as 'manual'. |
| `direction`       | The direction of the chat message                                                                                                                                                            |
| `sent_at`         | Timestamp indicating when the chat message was sent                                                                                                                                          |
| `creator_id`      | The ID of the creator of the chat message                                                                                                                                                    |
| `created_at`      | Timestamp indicating when the chat message was created in Affinity                                                                                                                           |
| `is_deleted`      | Whether the chat message record has been deleted                                                                                                                                             |
| `last_updated_at` | Timestamp when this record was last updated                                                                                                                                                  |
