We just released our native n8n integration!ยป Try now
OnlyFans API
Smart Links

Create Smart Link

Create a new Smart Link for the account. Smart Links are pooled Free Trial or Tracking links that rotate inventory automatically.

POST
/api/smart-links
AuthorizationBearer <token>

Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys

In: header

Request Body

application/json

account_id*string

The prefixed ID of the account to create the Smart Link for

name*string

The name of the Smart Link

link_type*string

The type of Smart Link to create

Value in"free_trial" | "tracking_link"
free_trial_days?integer

The number of free trial days (required if link_type is free_trial). Must be between 1 and 360.

Response Body

application/json

curl -X POST "https://app.onlyfansapi.com/api/smart-links" \  -H "Content-Type: application/json" \  -d '{    "account_id": "acct_XXXXXXXX",    "name": "Instagram Bio Link",    "link_type": "free_trial"  }'
{
  "data": {
    "id": "01JCZWQJZXQJZXQJZXQJZXQJZX",
    "name": "Instagram Bio Link",
    "link_type": "free_trial",
    "traffic_redirect_url": "https://trk.of-traffic.com/go/01JCZWQJZXQJZXQJZXQJZXQJZX",
    "free_trial_days": 7,
    "clicks_count": 0,
    "conversions_count": 0,
    "revenue": null,
    "account": {
      "id": "acct_XXXXXXXX",
      "display_name": "Example Creator",
      "username": "examplecreator"
    },
    "created_at": "2025-01-15T10:30:00+00:00",
    "updated_at": "2025-01-15T10:30:00+00:00"
  },
  "_meta": {
    "_credits": {
      "used": 1,
      "balance": 999999985,
      "note": "Always"
    },
    "_cache": {
      "is_cached": false,
      "note": "Cache disabled for this endpoint"
    },
    "_rate_limits": {
      "limit_minute": 10000000,
      "limit_day": 50000,
      "remaining_minute": 9999998,
      "remaining_day": 49988
    }
  }
}