Skip to main content
POST
/
api
/
authenticate
Start Authentication
curl --request POST \
  --url https://app.onlyfansapi.com/api/authenticate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "hpurdy@example.org",
  "password": ")@d)j9X&G",
  "proxyCountry": "de"
}'
{
  "attempt_id": "auth_XXXXXXXXXXXXXXXXXXXXX",
  "message": "Authentication process started. Query the polling_url to check the progress.",
  "polling_url": "https://app.onlyfansapi.com/api/authenticate/auth_XXXXXXXXXXXXXXXXXXXXX"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
email
string
required

The email address of the OnlyFans account

Example:

"hpurdy@example.org"

password
string
required

The password of the OnlyFans account

Example:

")@d)j9X&G"

proxyCountry
enum<string>
required

The country of the proxy server you want to use. Eg. "us" for United States

Available options:
us,
uk,
de,
es,
ua
Example:

"de"

Response

200 - application/json
attempt_id
string
Example:

"auth_XXXXXXXXXXXXXXXXXXXXX"

message
string
Example:

"Authentication process started. Query the polling_url to check the progress."

polling_url
string
Example:

"https://app.onlyfansapi.com/api/authenticate/auth_XXXXXXXXXXXXXXXXXXXXX"