Skip to main content
POST
/
v1
/
connect
/
cookie
Connect from a browser cookie
curl --request POST \
  --url https://api.onlyfanskit.dev/v1/connect/cookie \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cookie": "<string>",
  "xBc": "<string>",
  "userId": "<string>",
  "userAgent": "<string>",
  "label": "<string>"
}
'
{
  "account": {
    "id": "<string>",
    "ofUserId": "<string>",
    "label": "<string>",
    "state": "<string>",
    "rememberCredentials": true,
    "createdAt": "<string>",
    "lastSeenAt": "<string>"
  },
  "probe": {
    "id": 123,
    "username": "<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>.

Body

application/json

Full Cookie header from a logged-in session.

Minimum string length: 20
xBc
string
required

The x-bc value from the browser session.

Minimum string length: 8
userId
string
required

Numeric OnlyFans user id; must match the cookie owner.

Pattern: ^\d+$
userAgent
string
label
string
Maximum string length: 120
proxy_country
enum<string>

Egress proxy region for the account's traffic.

Available options:
us,
uk

Response

Account connected

account
object
probe
object