messages

Send a message to a chat.

Changed on

Rate limit: 1 request per second

The message text is scanned by the content-moderation service before being enqueued. Requests whose text matches restricted words or topics return 400 with code: "RESTRICTED_WORDS_DETECTED" and the matching words / topics in details.

Required permission: onlyfans.messages

post/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

Request body

textstring required

The message text content. Required unless a media file is present.

locked_textboolean required

If true, the text is locked behind the paywall (paid text). Requires price >= 3 and counts as a paid item, so media is not required.

Response

Default Response

send_idstring uuid required

Unique identifier for tracking this send by webhook

Changes