Get Fan Details
Fetches the full profile information for a specific fan (fans
table entry) linked to a creator’s account.
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
The username of the creator’s account associated with the fan.
The OnlyFans ID (
of_id
) of the fan to retrieve.Bearer token for authentication. Format:
Bearer YOUR_JWT_TOKEN
Response
Indicates the result status (e.g., “Success”). Often implicitly 200 OK. The actual structure depends on the
RESPONSE
helper.A descriptive message about the result (e.g., “Success”).
The fan data object from the
fans
table.
Note: The exact fields depend on the fans
table schema.Error Codes
Status Code | Description | Example Message |
---|---|---|
400 | Missing username or of_id query parameters. | ”Username and of_id are required” |
401 | Invalid or missing authentication token. | ”Unauthorized” |
404 | Creator account associated with username not found. | ”Account not found” |
404 | Fan with the specified of_id not found for the account. | ”Fan not found” |
500 | Internal server error during processing. | ”Internal server error” |
Code Examples
Notes
- This endpoint requires both the fan’s OnlyFans ID (
of_id
) and the username of the creator account they are associated with. - It retrieves the fan’s complete record from the
fans
table.