Skip to main content

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.

The fastest connect path. Take the Cookie header and x-bc value from a logged-in OnlyFans session and post them.
curl https://api.onlyfanskit.dev/v1/connect/cookie \
  -H "Authorization: Bearer $OFK_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cookie": "<your-cookie>",
    "xBc": "<your-x-bc>",
    "userId": "0",
    "label": "main creator",
    "proxy_country": "us"
  }'
The session is validated before the account is stored. On success you get the account back with status 201:
{
  "account": { "id": "acct_...", "ofUserId": "123", "label": "main creator", "state": "active" },
  "probe": { "id": 123, "username": "creator" }
}

Fields

FieldRequiredNotes
cookieyesFull Cookie header value from the session.
xBcyesThe session’s x-bc value.
userIdyesNumeric OnlyFans user id. Must match the session owner.
userAgentnoThe user agent to send. Keep it stable per account.
labelnoA human label; defaults to the creator’s username.
proxy_countrynoRegion for this account’s traffic — us or uk.
Keep an account’s user agent and region consistent across reconnects.

Errors

StatusMeaning
400 Credentials rejected by OnlyFansCookie or x-bc expired or invalid.
400 userId does not match cookie ownerThe userId doesn’t match the session.
402Account quota for your plan reached.