Skip to main content
When an account has two-factor enabled — or OnlyFans raises a device-trust gate for an unfamiliar login — the attempt parks on a challenge state and next_actions tells you what to send.

Two-factor channels

OnlyFans offers three two-factor channels:
A wrong code parks the attempt on wrong_2fa_code_retry so the creator can try again. The poll includes otp_channel and (for email) email_mask to drive your UI.

Email device verification

Separately from 2FA, OnlyFans may require a one-time email verification code to establish device trust for an unfamiliar login context (new device/region) or before sensitive actions. This is not a channel you configure — it’s a gate the API raises. When it triggers, the attempt parks on needs_email:
1

Trigger the email

2

Submit the code

Reauthentication

If an account was connected with remember_credentials: true, you can re-acquire a fresh session from the stored credentials without a full login:
This returns an attempt. It completes in one trip when no 2FA is required, or parks on needs_app_otp so you can submit a code via the same PUT. Without stored credentials you get 412 and must re-link.