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.comPOST/v1/{account_id}/posts/{post_id}/archive
Bearer
Authorization
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
privatestringSend
trueto move the post to the Private Archive, which subscribers cannot see, instead of the regular Archive. Defaultfalse.
curl --request POST "https://public-api.fansmetric.com/v1/acct_XXXXX/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
}
}
}