Connect onlyfans account
Submit 2FA
Submit the 2FA code for the authentication process.
AuthorizationBearer <token>
Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys
In: header
Path Parameters
attempt_idstring
The attempt ID of the authentication process
codestring
The 2FA code you received on your phone
Response Body
curl -X PUT "https://app.onlyfansapi.com/api/authenticate/string" \
-H "Content-Type: application/json" \
-d '{
"code": "12345"
}'
{
"message": "OTP submitted successfully"
}