Extension API Overview
The Extension API provides endpoints for integrating the OnlyAutomator Chrome Extension with the web application and backend services. These APIs enable account connection, data synchronization, and fan relationship management directly within the OnlyFans interface.Base URL
Authentication
All Extension API endpoints require authentication using a JWT token. The token should be included in theAuthorization
header with the Bearer
prefix.
API Endpoints
Method | Endpoint | Description |
---|---|---|
POST | /account-connect | Connect an OnlyFans account |
GET | /get-account | Get account status and information |
GET | /get-profile | Get user profile information |
GET | /account/allowed-features | Get features allowed by user’s plan |
GET | /fan/ | Get details for a specific fan |
GET | /emojis | Get user’s custom emoji settings |
POST | /emoji | Create or update user’s emoji setting |
GET | /scripts | Get all scripts for the user |
POST | /script | Create a new script |
POST | /update-note | Update notes for a subscriber |
POST | /update-of-note | Update notes from OnlyFans |
POST | /update-preference | Update subscriber preferences |
POST | /sync-notes | Synchronize notes with backend |
POST | /update-country | Update subscriber country information |
GET | /get-ppv-statistics | Get pay-per-view message statistics |
GET | /get-preferences | Get subscriber preferences |
GET | /get-transactions | Get transaction history for a subscriber |
Response Format
All API responses follow a standard format:Error Codes
Code | Description |
---|---|
authentication_required | No valid authentication token provided |
invalid_token | The provided token is invalid or expired |
permission_denied | Token lacks required permissions |
resource_not_found | Requested resource not found |
validation_error | Request validation failed |
service_unavailable | Service temporarily unavailable |
rate_limit_exceeded | Too many requests in a given time period |
CORS
The API endpoints support Cross-Origin Resource Sharing (CORS) from the following origins:chrome-extension://[extension-id]
https://onlyfans.com
https://onlyautomator.com
http://localhost:3000
(development only)