Client Sessions
Create Client Session
Create Client Session Token for later use in embedded auth components - eg. via @onlyfansapi/auth npm package.
AuthorizationBearer <token>
Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys
In: header
display_namestring
Display Name of the account visible in your OnlyFansAPI Console Dashboard.
client_reference_id?string
Your Internal Reference ID for the connected account.
proxy_country?string | null
Value in
"us" | "uk" | "de" | "fr" | "it"
Response Body
curl -X POST "https://app.onlyfansapi.com/api/client-sessions" \
-H "Content-Type: application/json" \
-d '{
"display_name": "STRLCxGLVC Agency / Model: Stella"
}'
{
"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
}
}
}