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
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
}
}
}