Get Account Proxy Configuration
This endpoint retrieves the current proxy configuration for a specific OnlyFans account, including proxy address, port, authentication credentials (username only in this view), country, mode, and activity status.The password is intentionally omitted from this response for security reasons. Use the specific backend service function (
getDecryptedAccountProxyConfig
) if the password is required server-side.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.
Response Example
Error Codes
This table provides context beyond the basic OpenAPI status codes.Status Code | Description |
---|---|
400 | Missing or invalid accountId parameter. |
401 | Authentication token is missing or invalid. |
404 | The specified accountId does not exist or has no proxy configuration. |
500 | An internal server error occurred while fetching the data. |
503 | Potentially relevant if a backend connectivity check fails during retrieval (though less common for GET). |
Code Examples
Security Considerations
- The proxy password is intentionally not included in this endpoint’s response.
- Ensure the bearer token used has appropriate, limited permissions.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Bearer token for authentication (JWT)
Path Parameters
The unique identifier of the OnlyFans account.
Response
Proxy configuration retrieved successfully.