API Keys
Banking
Connect OnlyFans Account
Mass Messaging
Media Vault
Media Vault Lists
Notifications
Payouts
Post Comments
Post Labels
Posts
Public Profiles
Saved For Later (Messages)
Saved For Later (Posts)
Statistics | Reach
Statistics | Statements
Tracking Links
Transactions
Trial Links
Users
Connect OnlyFans Account
Submit 2FA
Submit the 2FA code for the authentication process.
PUT
/
api
/
authenticate
/
{attempt_id}
Submit 2FA
Copy
curl --request PUT \
--url https://app.onlyfansapi.com/api/authenticate/{attempt_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"code": "12345"
}'
Copy
{
"message": "OTP submitted successfully"
}
Authorizations
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
Path Parameters
The attempt ID of the authentication process
Body
application/json
Response
200 - application/json
The response is of type object
.
Submit 2FA
Copy
curl --request PUT \
--url https://app.onlyfansapi.com/api/authenticate/{attempt_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"code": "12345"
}'
Copy
{
"message": "OTP submitted successfully"
}
Assistant
Responses are generated using AI and may contain mistakes.