Connect OnlyFans Account
Submit 2FA
Submit the 2FA code, or Selfie Verification status, for the authentication process.
Authorization
default AuthorizationBearer <token>
Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys
In: header
Path Parameters
attempt_id*string
The attempt ID of the authentication process
Request Body
application/json
code?string
The 2FA code you received on your phone. Must be empty if selfie_verification_completed is true.
selfie_verification_completed?boolean
This field is required when code is not present.
Value in
"true"Response Body
application/json
curl -X PUT "https://app.onlyfansapi.com/api/authenticate/auth_XXXXXXX" \ -H "Content-Type: application/json" \ -d '{}'{
"message": "OTP submitted successfully"
}