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
Trial Links
Create Trial Link
Create a new trial link for the account
POST
/
api
/
{account}
/
trial-links
Create Trial Link
Copy
curl --request POST \
--url https://app.onlyfansapi.com/api/{account}/trial-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": 7,
"offerExpiration": 7,
"offerLimit": 7,
"duration": 7
}'
Copy
{
"data": {
"id": 123,
"trialLinkName": "My new trial link",
"url": "https://onlyfans.com/username/trial/code",
"subscribeDays": 123,
"subscribeCounts": 123,
"claimCounts": 123,
"expiredAt": "2025-01-05T00:00:00+00:00",
"createdAt": "2025-01-01T00:00:00+00:00",
"isFinished": false
},
"_pagination": {
"next_page": null
},
"_meta": {
"_credits": {
"used": 1,
"balance": 999999840,
"note": "Always"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": 50000,
"remaining_minute": 998,
"remaining_day": 49993
}
}
}
Authorizations
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
Path Parameters
The Account ID
Body
application/json
Response
200 - application/json
Success
The response is of type object
.
Create Trial Link
Copy
curl --request POST \
--url https://app.onlyfansapi.com/api/{account}/trial-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": 7,
"offerExpiration": 7,
"offerLimit": 7,
"duration": 7
}'
Copy
{
"data": {
"id": 123,
"trialLinkName": "My new trial link",
"url": "https://onlyfans.com/username/trial/code",
"subscribeDays": 123,
"subscribeCounts": 123,
"claimCounts": 123,
"expiredAt": "2025-01-05T00:00:00+00:00",
"createdAt": "2025-01-01T00:00:00+00:00",
"isFinished": false
},
"_pagination": {
"next_page": null
},
"_meta": {
"_credits": {
"used": 1,
"balance": 999999840,
"note": "Always"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": 50000,
"remaining_minute": 998,
"remaining_day": 49993
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.