Posts
Archive Post
Moves a post out of the live feed and into the Archive, or into the Private Archive that subscribers cannot see. Archived posts stay retrievable and can be restored, so prefer this over Delete Post whenever the post might be wanted again. The response returns refreshed archive counts, so tab badges can be updated without a second call. Requires permission api_posts_archive.
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.
post_id*integerThe post ID. Numeric.
Query Parameters
privatebooleanSend
trueto move the post to the Private Archive, which subscribers cannot see, instead of the regular Archive. Defaultfalse.
Response Fields
data.labelStates[]arrayThe resulting state of both archive buckets, each with
id,name,typeandpostsCount.data.countersobjectRefreshed account totals — the same block List Posts returns, so a tab bar can be updated straight from this response.
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.labelStates[] | array | The resulting state of both archive buckets, each with id, name, type and postsCount. |
| data.counters | object | Refreshed account totals — the same block List Posts returns, so a tab bar can be updated straight from this response. |
| 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/posts/sample_post_id/archive?private=sample_private" \
--header "Authorization: Bearer YOUR_API_KEY"Response
200