curl --request POST \
--url https://app.onlyfansapi.com/api/{account}/posts/{post_id}/archive \
--header 'Authorization: Bearer <token>'
{
"data": {
"labelStates": [
{
"id": "private_archived",
"name": "Private Archive",
"type": "private_archived",
"isClearInProgress": false,
"postsCount": 0,
"posts": []
},
{
"id": "archived",
"name": "Archive",
"type": "archived",
"isClearInProgress": false,
"postsCount": 1,
"posts": [
{
"type": "text",
"canViewMedia": true,
"postId": 1791158283
}
]
}
],
"counters": {
"audiosCount": 0,
"photosCount": 0,
"videosCount": 0,
"mediasCount": 0,
"postsCount": 1,
"streamsCount": 0,
"archivedPostsCount": 1,
"privateArchivedPostsCount": 0
}
},
"_meta": {
"_credits": {
"used": 1,
"balance": 999999901,
"note": "Always"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": 50000,
"remaining_minute": 998,
"remaining_day": 49917
}
}
}
Archive a post from your account. Also can be used to move posts between the Regular and Private Archive.
curl --request POST \
--url https://app.onlyfansapi.com/api/{account}/posts/{post_id}/archive \
--header 'Authorization: Bearer <token>'
{
"data": {
"labelStates": [
{
"id": "private_archived",
"name": "Private Archive",
"type": "private_archived",
"isClearInProgress": false,
"postsCount": 0,
"posts": []
},
{
"id": "archived",
"name": "Archive",
"type": "archived",
"isClearInProgress": false,
"postsCount": 1,
"posts": [
{
"type": "text",
"canViewMedia": true,
"postId": 1791158283
}
]
}
],
"counters": {
"audiosCount": 0,
"photosCount": 0,
"videosCount": 0,
"mediasCount": 0,
"postsCount": 1,
"streamsCount": 0,
"archivedPostsCount": 1,
"privateArchivedPostsCount": 0
}
},
"_meta": {
"_credits": {
"used": 1,
"balance": 999999901,
"note": "Always"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": 50000,
"remaining_minute": 998,
"remaining_day": 49917
}
}
}
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
Set to true
to move this post to the Private Archive.
true
Success
The response is of type object
.