Prerequisites: You need an OFAuth account. Sign up here if you don’t have one.
Step 1: Get Your API Key
1
Go to your dashboard
2
Copy your API key
Your API key looks like
ofauth_.... Keep it secure—don’t commit it to version control.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 an
urlin the response - Redirect the user to that URL
- They authenticate on OFAuth’s secure page
- On success, they’re redirected to your
successUrlwith the{CONNECTION_ID}replaced
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?
Join our Discord community for support