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

# Chat Message

> Data fields for the `realtime.chat_message.received` event

Use a received-message event to refresh the affected conversation.

`withUserId` is the chat partner: the user id of the fan whose chat the message is in. Use it as the `userId` of `/v3/access/chats/{userId}/messages` to read the thread, without fetching chats first. It is optional. It is missing when OnlyFans does not identify the sender, and when the connected account sent the message itself, so it never names the account. When it is missing, look the message `id` up in the chats you have.

The fields below describe `data` for `realtime.chat_message.received`, inside the full event. Use the full event’s `linkedAccountId` to find the account. Use `eventId` to avoid handling the same event twice. See the [activity guide](https://docs.ofauth.com/v3/guides/realtime-onlyfans-events.md) to receive events and the [webhook reference](https://docs.ofauth.com/v3/api-reference/webhooks.md#envelope) for the full event fields.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.