OnlyFans API DocumentationOnlyFans API
Chat Messages

Send Message

Send a message in a chat for a connected OnlyFans account.

Send a message to an OnlyFans user from a connected account.

https://v1.onlyfansapi.io
POST
/api/{acct_id}/chats/{user_id}/messages

Headers

x-api-key*
string
Your API key. See Authentication.

Path Parameters

acct_id*
string
The connected account to send from, as returned by Authenticate Account.
user_id*
string
The OnlyFans user to message, as returned in withUser.id by List Chats.

Body Parameters

text*
string
The message body as HTML. Plain text is wrapped in <p></p> automatically.
price ?
number
Price in USD to unlock the message. 0 sends a free message. Defaults to 0.
lockedText ?
boolean
Hide the text until the message is purchased. Defaults to false.
mediaFiles ?
number[]
IDs of already-uploaded media to attach. Defaults to [].
previews ?
number[]
Subset of mediaFiles IDs shown as free previews of a paid message. Defaults to [].
rfTag ?
array
Release form tags for the attached media. Defaults to [].
rfGuest ?
array
Release form guests for the attached media. Defaults to [].
rfPartner ?
array
Release form partners for the attached media. Defaults to [].
isForward ?
boolean
Set to true when forwarding an existing message. Defaults to false.