Posts
Pin Post
Pins a post to the top of the creator's profile, or unpins it. This endpoint is a toggle — a second call reverses the first. The response only confirms success, so read the resulting state back from List Posts with pinned=true. Requires permission api_posts_pin.
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.
Response Fields
data.successbooleanConfirms the call went through. It does not tell you whether the post ended up pinned or unpinned — list
pinned=trueto find out.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.success | boolean | Confirms the call went through. It does not tell you whether the post ended up pinned or unpinned — list pinned=true to find out. |
| 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/pin" \
--header "Authorization: Bearer YOUR_API_KEY"Response
200