Posts
Create Post
Composes and publishes a new post on the creator's feed. Supports plain text, attached media from the vault or freshly uploaded files, paid (PPV) posts, scheduled posts, and release-form tags. Requires permission api_posts_create.
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/jsontext*stringPost caption. HTML is preserved (
<p>,<a>, etc.).mediaFilesarrayArray of OF vault media IDs (integer) to attach. Required if the post should include media.
pricestringIf present and
> 0, makes the post a paid (PPV) post, in USD.previewstringWhen
price > 0, the subset ofmediaFilesIDs to show as the free preview.rfTagstringArray of release-form tag IDs (string).
rfGueststringArray of tagged guest user IDs (integer).
rfPartnerstringArray of tagged partner user IDs (integer).
scheduledTimestringISO timestamp to schedule the post for a future time. Omit to publish immediately.
curl --request POST "https://public-api.fansmetric.com/v1/acct_XXXXX/posts" \
--header "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"text": "<p>New exclusive set 💖</p>",
"mediaFiles": [1111111111, 2222222222, 3333333333],
"preview": [1111111111],
"price": 25
}'Response
200