v8

latestOpenAPI 3.0.3raw.githubusercontent.com2026-05-2526602.8 MB
Client Sessions

Create Client Session

Create Client Session Token for later use in embedded auth components - eg. via @onlyfansapi/auth npm package.

post/api/client-sessions

Request body

display_namestring required

Display Name of the account visible in your OnlyFansAPI Console Dashboard.

client_reference_idstring

Your Internal Reference ID for the connected account.

proxy_country'us' | 'uk' nullable

Example request

{
  "display_name": "STRLCxGLVC Agency / Model: Stella",
  "client_reference_id": "my_crm_model_12345",
  "proxy_country": "uk"
}

Response

Success

Example response

{
  "data": {
    "token": "ofapi_cs_OriR8Sdocp0f97eFOdbMMZtiz4Aw5FLX",
    "display_name": "STRLCxGLVC Agency / Model: Stella",
    "client_reference_id": "my_crm_model_12345"
  },
  "_meta": {
    "_credits": {
      "used": 0,
      "balance": 224907,
      "note": "Always"
    },
    "_cache": {
      "is_cached": false,
      "note": "Cache disabled for this endpoint"
    },
    "_rate_limits": {
      "limit_minute": 1000,
      "limit_day": 50000,
      "remaining_minute": 999,
      "remaining_day": 49999
    }
  }
}