> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fansly permissions

> How to configure paywalls, subscription requirements, tips, and follow locks for Fansly posts and messages.

Fansly uses a flexible permissions model to restrict access to posts, vault media, and private messages. Instead of simple toggle flags, Fansly utilizes a permissions array containing flag sums and stringified metadata configurations.

Posttu provides a dedicated API endpoint to calculate this structure dynamically so you do not have to compute bitwise flags or stringify metadata formats manually.

***

## Access Locks and Flags

The Fansly permissions engine supports locking content behind one or more conditions:

* **Paywall / Price**: Set an access price in USD.
* **Subscription Requirement**: Restrict access to subscribers (or a specific subscription tier).
* **Tip Gate**: Require users to tip a minimum amount.
* **Follow Requirement**: Restrict access to followers or users you follow back.
* **Media Purchases Count**: Lock content based on the user's past media spending.
* **Expiration Time**: Make access configurations valid only before a specific date.

***

## Generating Permissions via API

To generate a permissions payload, send a `POST` request to `/api/v1/fansly/account/permissions` containing your access configurations.

```bash theme={null}
curl -X POST "https://posttu.com/api/v1/fansly/account/permissions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "price": 10.00,
    "requireSubscription": true,
    "subscriptionTierId": "tier_sub123",
    "requireFollowing": true
  }'
```

### Response Example

The API returns a permissions array. The values (such as `price` and `minAmount`) are automatically scaled to Fansly's internal numeric units (milli-USD):

```json theme={null}
{
  "success": true,
  "data": [
    {
      "metadata": "[{\"4\":{\"subscriptionTierId\":\"tier_sub123\",\"subscriptionTierName\":\"Tier\"}}]",
      "price": 10000,
      "flags": 5
    }
  ]
}
```

***

## Applying Permissions to Content

Once generated, you can supply this permissions array directly inside your posts or messages.

### Example: Scheduling a Locked Fansly Post

Use the `other` configuration field to pass the generated permissions array:

```bash theme={null}
curl -X POST "https://posttu.com/api/v1/posts/create" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "postDetails": {
      "base": {
        "text": "Check out this premium content! 🔒",
        "timestamp": "2026-07-05T12:00:00Z"
      },
      "channels": {
        "ch_fansly_brand": {
          "other": {
            "FANSLY": {
              "permissions": [
                {
                  "metadata": "[{\"4\":{\"subscriptionTierId\":\"tier_sub123\",\"subscriptionTierName\":\"Tier\"}}]",
                  "price": 10000,
                  "flags": 5
                }
              ]
            }
          }
        }
      }
    },
    "isDraft": false
  }'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.