The Only API docs
Auth

Connect an account with credentials (OnlyFans or Fansly)

Connect a new creator account via email/username + password. Set platform to "onlyfans" (default) or "fansly".

POST
/accounts/login

Connect a new creator account via email/username + password. Set platform to "onlyfans" (default) or "fansly".

  • X-Proxy header is REQUIRED for OnlyFans, optional for Fansly. You may pass proxy in the body as an alternative.
  • For platform: "fansly" the email field accepts a username or an email.
  • Supports 2FA: if the account has 2FA enabled the response includes requires_2fa: true (Fansly also returns twofa_type), and you must call POST /accounts/login/verify-otp next with the same platform and identifier.

Consumes one account slot. Rate limited to 10 requests/minute.

Guide: Connect an account

X-API-Key<token>

Your CRM panel API key

In: header

Header Parameters

X-Proxy?string

Proxy URL — HTTP or SOCKS5 (e.g. http://user:pass@host:port or socks5://user:pass@host:port). Optional on post-connection routes, where it overrides the proxy saved at login time. Required on the connection routes (POST /accounts/login, POST /accounts/login/cookies, POST /accounts/login/verify-otp) for OnlyFans accounts; optional for Fansly.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/accounts/login" \  -H "Content-Type: application/json" \  -d '{    "platform": "onlyfans",    "email": "[email protected]",    "password": "your_password",    "use_captcha": true  }'

{  "success": true,  "of_user_id": "123456789",  "username": "example_user",  "email": "[email protected]",  "avatar": "https://..."}