Endpoint
Authentication
This endpoint requires authentication via bearer token representing a valid user session managed by Supabase Auth (cookies).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
Response
Status of the request (
success
or error
)Account information object
Unique identifier for the account
Unique identifier for the user who owns this account
OnlyFans account identifier
OnlyFans username
Connection status (
connected
, pending
, or disconnected
)ISO timestamp of when the data was last synchronized
Basic profile information from OnlyFans
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 | No connected account found for this user |
service_unavailable | The account service is temporarily unavailable |
Notes
- This endpoint is typically used by the Chrome extension to verify account connection status
- It returns
null
if no account is connected - The extension uses this information to determine whether to display connected or disconnected UI states
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Bearer token for authentication (JWT)