API Keys
Banking
Connect OnlyFans Account
Mass Messaging
Media Vault
Media Vault Lists
Notifications
Payouts
Post Comments
Post Labels
Posts
Public Profiles
Saved For Later (Messages)
Saved For Later (Posts)
Statistics | Reach
Statistics | Statements
Tracking Links
Transactions
Trial Links
Users
Tracking Links
Create Tracking Link
Create a new Tracking Link for the account
POST
/
api
/
{account}
/
tracking-links
Create Tracking Link
Copy
curl --request POST \
--url https://app.onlyfansapi.com/api/{account}/tracking-links \
--header 'Authorization: Bearer <token>'
Copy
{
"data": [
{
"id": 123,
"countSubscribers": 0,
"countTransitions": 0,
"campaignCode": 123,
"campaignName": "foobar",
"createdAt": "2025-01-01T00:00:00+00:00",
"endDate": null
}
],
"_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
}
}
}
Authorizations
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
Path Parameters
The Account ID
Query Parameters
The name of the Tracking Link
Example:
"Twitter bio"
Response
200 - application/json
Success
The response is of type object
.
Create Tracking Link
Copy
curl --request POST \
--url https://app.onlyfansapi.com/api/{account}/tracking-links \
--header 'Authorization: Bearer <token>'
Copy
{
"data": [
{
"id": 123,
"countSubscribers": 0,
"countTransitions": 0,
"campaignCode": 123,
"campaignName": "foobar",
"createdAt": "2025-01-01T00:00:00+00:00",
"endDate": null
}
],
"_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
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.