Skip to main content
PUT
/
v1
/
connect
/
login
/
{attemptId}
Submit a 2FA code
curl --request PUT \
  --url https://api.onlyfanskit.dev/v1/connect/login/{attemptId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>",
  "selfie_verification_completed": true
}
'
{
  "attempt_id": "<string>",
  "account_id": "<string>",
  "polling_url": "<string>",
  "verification_page_url": "<string>",
  "phone_url": "<string>",
  "embed_url": "<string>",
  "otp_channel": "<string>",
  "email_mask": "<string>",
  "next_actions": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.onlyfanskit.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Your API key, sent as Authorization: Bearer <key>.

Path Parameters

attemptId
string
required

Connect attempt id.

Body

application/json
code
string
Maximum string length: 16
selfie_verification_completed
boolean

Response

Updated attempt state

attempt_id
string
state
enum<string>

Lifecycle state of the attempt.

Available options:
pending,
awaiting_mobile_session,
needs_otp,
needs_app_otp,
needs_email,
needs_face_otp,
wrong_2fa_code_retry,
completed_success,
completed_failed
account_id
string | null

Present once state is completed_success.

polling_url
string | null
verification_page_url
string | null
phone_url
string | null
embed_url
string | null
otp_channel
string | null
email_mask
string | null
next_actions
string[]