Skip to main content
PUT
/
api
/
authenticate
/
{attempt_id}
Submit 2FA
curl --request PUT \
  --url https://app.onlyfansapi.com/api/authenticate/{attempt_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "12345"
}'
{
  "message": "OTP submitted successfully"
}

Authorizations

Authorization
string
header
required

You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.

Path Parameters

attempt_id
string
required

The attempt ID of the authentication process

Body

application/json
code
string
required

The 2FA code you received on your phone

Example:

"12345"

Response

200 - application/json
message
string
Example:

"OTP submitted successfully"