Prerequisites: You need an OFAuth account. Sign up here if you don’t have one.
Step 1: Get Your API Key
Go to your dashboard
You should see your organization details. If you get an error, double-check your API key.
Step 2: Connect an OnlyFans Account
Create a Link session to authenticate a user:- You get a
urlin the response - Redirect the user to that URL
- They authenticate on OFAuth’s secure page
- On success, they’re redirected to your
redirectUrlwithconnection_idas a query parameter
Step 3: Fetch Data
Once you have a Connection ID, use it to access OnlyFans data:That’s it! You’ve connected an OnlyFans account and fetched data through OFAuth.
What’s Next?
Send Messages
Learn to send messages and manage chats
List Fans
Get subscriber lists and fan data
TypeScript SDK
Use our SDK for type-safe development
Set Up Webhooks
Get notified when connections change
Common Issues
401 Unauthorized
401 Unauthorized
Connection not found
Connection not found
The Connection ID may have expired or be invalid. Create a new Link session.
Session expired
Session expired
OnlyFans sessions expire periodically. The user needs to re-authenticate via Link.
Need Help?
Contact our support team for assistance