Post Labels
Add Posts to Label
Adds one or more posts to a label in a single call. Re-adding a post that is already on the label is harmless, and a post can carry several labels at once — so you do not need to check membership first. Requires permission api_post_labels_add_posts.
https://public-api.buffmetrics.comPOST/v1/{account_id}/post-labels/{label_id}/posts
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.
label_id*integerThe label to add to. Numeric.
Request Body
application/jsonpost_ids*arrayArray of post IDs to add. Must contain at least one entry.
curl --request POST "https://public-api.buffmetrics.com/v1/acct_XXXXX/post-labels/sample_label_id/posts" \
--header "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"post_ids": [2676873092, 2661473796]
}'Response
200{
"data":{
"label":{
"id":9844743
"name":"bg🔥"
"type":"custom"
"isClearInProgress":false
"postsCount":6
"posts":[
0:{
"type":"photo"
"canViewMedia":true
"postId":"2676873092"
"url":"https://cdn2.onlyfans.com/files/..."
}
]
}
"success":true
}
"_meta":{
"_credits":{
"used":1
}
"_rate_limits":{
"limit_minute":1000
"remaining_minute":999
"limit_day":50000
"remaining_day":49999
}
}
}