POST
/
api
/
proxy
/
account
/
{accountId}
/
disable
Disable Proxy
curl --request POST \
  --url https://onlyautomator.com/api/proxy/account/{accountId}/disable \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "proxy_mode": "none",
    "proxy_is_active": false,
    "message": "Proxy disabled successfully"
  }
}

Disable Proxy

This endpoint disables the proxy configuration for a specific OnlyFans account. This effectively removes the proxy details (address, port, credentials, ID) and sets the account to use no proxy (proxy_mode: 'none'). Any existing region preference is usually kept.

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:
  1. Call this endpoint from your web application after logging in.
  2. Use curl or a similar tool with a valid, current user JWT obtained from your browser’s session after logging in.
Retrieving JWT Token for Testing: To test endpoints requiring a user session with tools like curl, you need the JWT access token stored by Supabase Auth in your browser.
  1. Log in to your application normally in your browser.
  2. Open Developer Tools (usually F12).
  3. Go to the Application tab (it might be called Storage in Firefox).
  4. Under the Storage section, find Cookies and select your application’s domain (e.g., http://localhost:3000 or https://onlyautomator.com).
  5. Look for a cookie named similar to sb-access-token (the exact name might vary slightly based on Supabase configuration).
  6. Copy the entire value of this cookie. This is your Bearer token.
  7. Use this copied value in the Authorization: Bearer <your_copied_token> header for your curl or other API tool requests.
Note: This token has a limited lifetime and you’ll need to copy a fresh one after it expires.

Response Example

{
  "data": {
    "proxy_mode": "none",
    "proxy_is_active": false,
    "message": "Proxy disabled successfully"
  }
}

Error Codes

This table provides context beyond the basic OpenAPI status codes.
Status CodeDescription
400Missing or invalid accountId.
401Authentication token is missing or invalid.
404The specified accountId does not exist.
500An internal server error occurred during the database update.

Code Examples

// Using fetch
const disableProxy = async (accountId, apiToken) => {
  const response = await fetch(`https://onlyautomator.com/api/proxy/account/${accountId}/disable`, {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${apiToken}`
      // No Content-Type needed for POST with empty body
    }
  });
  
  if (!response.ok) {
     const errorData = await response.json();
     throw new Error(`API Error (${response.status}): ${errorData.error}`);
  }
  return await response.json();
};

// Example usage
disableProxy('acc123', 'your_api_token')
  .then(data => console.log('Proxy disable result:', data))
  .catch(error => console.error('Error disabling proxy:', error));

Notes

  • This action sets proxy_mode to none and proxy_is_active to false.
  • It clears sensitive fields: proxy_address, proxy_port, proxy_username, proxy_password, proxy_id, proxy_assigned_at.
  • The proxy_region_preference is typically retained.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required

Bearer token for authentication (JWT)

Path Parameters

accountId
string<uuid>
required

The unique identifier of the OnlyFans account.

Response

Proxy disabled successfully.

data
object