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"
}
Submit the 2FA code for the authentication process.
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"
}
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
The attempt ID of the authentication process
The response is of type object
.