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.com
POST/v1/{account_id}/posts/{post_id}/archive
Bearer

Authorization

default
AuthorizationBearer <token>

Send your FansMetric API key as a Bearer token in the Authorization header.

In: header

Path Parameters

  • account_id*integer

    OnlyFans numeric account ID.

  • post_id*integer

    The post ID. Numeric.

Query Parameters

  • privateboolean

    Send true to move the post to the Private Archive, which subscribers cannot see, instead of the regular Archive. Default false.

Response Fields

  • data.labelStates[]array

    The resulting state of both archive buckets, each with id, name, type and postsCount.

  • data.countersobject

    Refreshed account totals — the same block List Posts returns, so a tab bar can be updated straight from this response.

  • dataobject | array

    Endpoint-specific payload. See the fields below for this route.

  • _meta._credits.usedinteger

    Credits consumed by this request (currently always 1).

  • _meta._rate_limits.limit_minuteinteger

    Maximum requests per minute for the organization.

  • _meta._rate_limits.remaining_minuteinteger

    Remaining requests in the current minute window.

  • _meta._rate_limits.limit_dayinteger

    Maximum requests per day for the organization.

  • _meta._rate_limits.remaining_dayinteger

    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
{
"data":{
"labelStates":[
0:{
"id":"private_archived"
"name":"Private Archive"
"type":"private_archived"
"isClearInProgress":false
"postsCount":77
}
1:{
"id":"archived"
"name":"Archive"
"type":"archived"
"isClearInProgress":false
"postsCount":1
}
]
"counters":{
"audiosCount":0
"photosCount":278
"videosCount":18
"mediasCount":296
"postsCount":279
"streamsCount":0
"archivedPostsCount":1
"privateArchivedPostsCount":77
}
}
"_meta":{
"_credits":{
"used":1
}
"_rate_limits":{
"limit_minute":1000
"remaining_minute":999
"limit_day":50000
"remaining_day":49999
}
}
}