Endpoint
Authentication
Authentication Requirements
Authentication Requirements
This endpoint requires authentication using a valid JWT token representing a valid user session managed by Supabase Auth (cookies).Include the token in the Authorization header as a Bearer token:The JWT token is obtained when connecting the account through the extension, or automatically handled by the browser session.Testing Note: Due to the requirement for a live user session, this endpoint cannot be successfully tested directly using the ‘Send’ button in this documentation with a static token.To test:
- Call this endpoint from your web application after logging in.
- Use
curl
or a similar tool with a valid, current user JWT obtained from your browser’s session after logging in.
curl
, you need the JWT access token stored by Supabase Auth in your browser.
- Log in to your application normally in your browser.
- Open Developer Tools (usually F12).
- Go to the Application tab (it might be called Storage in Firefox).
- Under the Storage section, find Cookies and select your application’s domain (e.g.,
http://localhost:3000
orhttps://onlyautomator.com
). - Look for a cookie named similar to
sb-access-token
(the exact name might vary slightly based on Supabase configuration). - Copy the entire value of this cookie. This is your Bearer token.
- Use this copied value in the
Authorization: Bearer <your_copied_token>
header for yourcurl
or other API tool requests.
Request Headers
Bearer token for authentication. Format:
Bearer YOUR_JWT_TOKEN
Must be set to
application/json
OnlyFans username associated with the account
Response
Status of the request (
success
or error
)Profile information object
Unique identifier for the profile
OnlyFans identifier
OnlyFans username
Display name shown on OnlyFans
URL to the profile avatar image
URL to the profile cover image
Profile bio/about section
Location displayed on the profile
Number of current subscribers
Subscription price in USD
Account performance statistics
Total number of posts
Number of photo posts
Number of video posts
Number of PPV messages sent
Total revenue from PPV messages
200 Success
401 Unauthorized
403 Forbidden
404 Not Found
Error Codes
Error Code | Description |
---|---|
authentication_required | No valid authentication token provided |
permission_denied | Token lacks required permissions |
resource_not_found | Profile not found for the specified username |
invalid_username | The provided username is invalid |
service_unavailable | The profile service is temporarily unavailable |
Notes
- This endpoint provides more detailed profile information than the
/get-account
endpoint - The data includes analytics that are not directly available through the OnlyFans interface
- Revenue statistics are calculated based on the data collected by OnlyAutomator
- This information is used by the extension to display analytics in the CRM panel
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Bearer token for authentication (JWT)
OnlyFans username associated with the account