OnlyFans API icon

OnlyFans API

Consume the OnlyFans API

Actions147

Chat Messages → List Chat Messages

AI-generated

Summary

Retrieve a list of chat messages from a specific OnlyFans chat identified by the account ID and chat ID, with optional filtering and pagination.

Inputs

  • Account ID (required) — The unique identifier of the OnlyFans account.
  • The Chat ID (required) — The unique identifier of the chat from which to list messages.
  • Additional Fields — Optional parameters to filter and paginate chat messages, including filter by pinned messages, first message ID to include, last message ID for pagination, sort order (ascending or descending), and whether to skip user details.

Output shape

a list of chat message objects

Returns an array of chat messages matching the specified criteria. Pagination is supported via 'Last Message ID' parameter. Filter currently supports only pinned messages. User details can be optionally skipped in the results.

Examples

Example 1: List pinned chat messages in descending order

Set Account ID and Chat ID, add Additional Fields to filter by 'pinned', order 'desc', and skip user details if desired.

Discussion