Before You Start
1
Create OFAuth Account
Sign up at app.ofauth.com if you haven’t already.
2
Complete Platform Profile
Set up your platform profile (app name, description, website, privacy policy) via the setup wizard in Dashboard > Client Apps.
3
Create a Client App
Create a client app and choose your integration type (Redirect, Embed, or Whitelabel). Configure allowed redirect URIs or origins for your app. Copy your
clientAppId.4
Generate API Key
Go to API Keys and create your API key.
5
Set Data Access Permissions
Configure which OnlyFans data your integration needs access to (profile, posts, messages, etc.) in Dashboard > Client Apps > Settings > Access Permissions.
6
Configure Webhook Endpoint
Set up your webhook URL at Webhooks to receive System Webhook Events for connection changes.
Development Setup
1
Use Sandbox Environment
Always develop and test using the Sandbox environment first.
2
Implement Link Flow
Set up the authentication flow to connect OnlyFans accounts:
3
Handle System Webhook Events
Process incoming webhooks to store connection IDs:
4
Store Connection IDs Securely
Treat connection IDs like credentials—store them encrypted in your database.
Pre-Production Checklist
API key works with test requests
Link flow completes successfully in Sandbox
System Webhook Events are being received and processed
Connection IDs are stored and retrievable
Access API calls work with stored connection IDs
Error Handling
Ensure your integration handles these scenarios:Session Expiration Flow
Go Live Checklist
1
Switch to Production API Key
Replace your Sandbox API key with your production key.
Production and Sandbox use the same API endpoints. The environment is determined by your API key.
2
Verify Webhook Signatures
Ensure you’re validating webhook signatures in production:
3
Set Up Monitoring
Monitor for:
- Webhook delivery failures
- Rate limit warnings
- Session expiration rates
- API error rates
4
Document for Your Users
Create user-facing documentation explaining:
- Why you need OnlyFans access
- What data you’ll access
- How to disconnect their account
Quick Reference
Required Headers
Key Endpoints
Webhook Events
Need Help?
Quickstart Guide
Get your first API call working
Error Handling
Handle errors gracefully
Sandbox Environment
Test safely without affecting real accounts
Contact Support
Get help from our team