Mass Messages
Send Mass Message
Sends a mass message to selected fan lists and/or individual users. Supports text, media, PPV, GIFs, scheduling, and audience filters. To attach a new photo or video, see Uploading Media. Requires permission api_mass_messages_send.
https://public-api.fansmetric.comAuthorization
defaultAuthorizationBearer <token>Send your FansMetric API key as a Bearer token in the Authorization header.
In: header
Path Parameters
account_id*integerOnlyFans numeric account ID.
Request Body
application/jsontextstringMessage text (HTML supported). Required unless
mediaFilesorgiphyIdis set.lockedTextbooleanHide the text behind the paywall. Defaults to
false.mediaFilesarrayVault media IDs, and new uploads as the
{ processId, host, name, extra }object from Uploading Media. Both can go in one list. Defaults to[].pricenumberPPV price in USD:
0for free, otherwise 3-200. Defaults to0.previewsarrayPreview media IDs for a paid message — a subset of
mediaFiles. Defaults to[].rfTagarrayOnlyFans user IDs of the creators to tag (release forms). Defaults to
[].rfGuestarrayRelease-form guest IDs. Defaults to
[].rfPartnerarrayRelease-form partner IDs. Defaults to
[].filtersobjectAudience filters. Supported keys:
totalSpent,tips,duration,inactive,online,signedUpAfter,signedUpBefore. Defaults to no filters.userListsarrayFan lists to send to: built-in lists by name, custom lists by ID, such as
["fans"],[47382]or["fans", 47382]. Required unlessuserIdsis provided.userIdsarrayIndividual fans to send to, by user ID. Required unless
userListsis provided.excludedListsarrayFan lists to leave out of the audience, in the same form as
userLists.recommendersintegerSet to
1to send only to recommended users.giphyIdstringGiphy GIF ID — get from
/v1/gifs/trendingor/v1/gifs/search.isScheduledintegerSet to
1to send atscheduledDateinstead of now.scheduledDatestringISO 8601 timestamp for the scheduled send. Required when
isScheduledis1.
Response Fields
data.idintegerQueue ID. Use this to cancel / look up the mass message.
data.datestringISO 8601 timestamp of creation.
data.isReadybooleanTrue when the queue item is ready to send / currently sending.
data.isDonebooleanTrue when sending is complete.
data.totalintegerTotal recipients.
-1or0while the count is still being resolved.data.pendingintegerRecipients still pending.
data.canUnsendbooleanWhether the mass message can still be cancelled.
data.unsendSecondsintegerSeconds remaining to unsend.
data.hasErrorbooleanTrue if sending hit an error.
data.isCanceledbooleanTrue if the mass message was cancelled.
data.isCouplePeopleMediabooleanTrue when the media contains multiple people (release-form trigger).
dataobject | arrayEndpoint-specific payload. See the fields below for this route.
_meta._credits.usedintegerCredits consumed by this request (currently always
1)._meta._rate_limits.limit_minuteintegerMaximum requests per minute for the organization.
_meta._rate_limits.remaining_minuteintegerRemaining requests in the current minute window.
_meta._rate_limits.limit_dayintegerMaximum requests per day for the organization.
_meta._rate_limits.remaining_dayintegerRemaining requests in the current day window.
| Field | Type | Description |
|---|---|---|
| data.id | integer | Queue ID. Use this to cancel / look up the mass message. |
| data.date | string | ISO 8601 timestamp of creation. |
| data.isReady | boolean | True when the queue item is ready to send / currently sending. |
| data.isDone | boolean | True when sending is complete. |
| data.total | integer | Total recipients. -1 or 0 while the count is still being resolved. |
| data.pending | integer | Recipients still pending. |
| data.canUnsend | boolean | Whether the mass message can still be cancelled. |
| data.unsendSeconds | integer | Seconds remaining to unsend. |
| data.hasError | boolean | True if sending hit an error. |
| data.isCanceled | boolean | True if the mass message was cancelled. |
| data.isCouplePeopleMedia | boolean | True when the media contains multiple people (release-form trigger). |
| data | object | array | Endpoint-specific payload. See the fields below for this route. |
| _meta._credits.used | integer | Credits consumed by this request (currently always 1). |
| _meta._rate_limits.limit_minute | integer | Maximum requests per minute for the organization. |
| _meta._rate_limits.remaining_minute | integer | Remaining requests in the current minute window. |
| _meta._rate_limits.limit_day | integer | Maximum requests per day for the organization. |
| _meta._rate_limits.remaining_day | integer | Remaining requests in the current day window. |
curl --request POST "https://public-api.fansmetric.com/v1/100000001/mass-messages" \
--header "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"text": "Hello everyone!",
"userLists": ["fans"],
"mediaFiles": [],
"price": 0,
"filters": {}
}'Response
200Behavior
Upstream OnlyFans endpoint: POST /api2/v2/messages/queue.
Audience targeting requires at least one of userLists or userIds with an entry in it, or the request is refused with 400. excludedLists only narrows an existing audience.
Send only the fields you need: the rest take the defaults above, the same values the FansMetric app sends.