messages

Get chat messages for a specific chat.

Changed on

Rate limit: 1 request per second

Marks the chat as read. Fetching messages through this endpoint marks the chat as read on OnlyFans, the same as opening it there: its unread messages disappear from the creator's unread list. To watch incoming messages without marking them as read, subscribe to the chat.message webhook.

Required permission: onlyfans.messages

get/api/v0/accounts/{account_id}/chats/{chat_id}/messages

Request

  • Base URL
    https://omapi.onlymonster.ai
  • Auth
    API key in header x-om-auth-token

Path parameters

account_idstring required

Big integer id as string

chat_idstring required

Query parameters

limitinteger
message_idinteger

ID of the last message from previous page. Used for pagination

'asc'
OR
'desc'

Response

Default Response

has_moreboolean required

true if more messages are available beyond the returned page

Changes