Messaging spans two resources:Documentation Index
Fetch the complete documentation index at: https://docs.onlyfanskit.dev/llms.txt
Use this file to discover all available pages before exploring further.
chats (the conversation list) and messages
(the contents of a thread).
- SDK
- Hosted API
Common operations
| Want to | Call |
|---|---|
| List conversations | chats.list({ limit, order }) |
| Read a thread | messages.list(userId, { limit }) |
| Send a message | messages.send(userId, { text, mediaFiles?, price? }) |
| Search within a chat | chats.searchMessages(userId, query) |
| Mark read | messages.markRead(userId) / chats.markRead(userId) |
| Delete a message | messages.delete(userId, messageId) |
| React (like / pin) | messages.like(...), messages.pin(...) |
| Unread / priority counts | chats.priorityCounts() |
Message ids are numeric, and user ids are the fanβs OnlyFans id. The full
parameter shapes are documented inline in the SDK β point your editor at the
messages and chats resources for JSDoc on each method.