Client Sessions
Create Client Session
Changed onCreate Client Session Token for later use in embedded auth components - eg. via @onlyfansapi/auth npm package.
post/api/client-sessions
Request
- Base URLhttps://app.onlyfansapi.com
- URLhttps://app.onlyfansapi.com/api/client-sessions
- AuthHTTP bearer
Request body
Example request
{
"display_name": "STRLCxGLVC Agency / Model: Stella",
"client_reference_id": "my_crm_model_12345",
"proxy_country": "gb",
"scopes": [
"tracking-links.read",
"trial-links.read",
"smart-links.read"
],
"app_name": "OnlySearch"
}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
}
}
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new
gbenum value to the request property
- info
- breaking
removed the enum value
czof the request property - breaking
removed the enum value
deof the request property - breaking
removed the enum value
esof the request property - breaking
removed the enum value
frof the request property - breaking
removed the enum value
huof the request property - breaking
removed the enum value
itof the request property - breaking
removed the enum value
plof the request property - breaking
removed the enum value
roof the request property - breaking
removed the enum value
skof the request property - breaking
removed the enum value
uaof the request property
- breaking