Home/Docs/Team and lifecycle

Team workspaces and lifecycle

Updated 2026-10-09. These are CreatorAPI service features for connected OnlyFans and Fansly accounts, subject to each account's existing platform, slot, permission and credit checks. They do not imply complete parity with another provider.

Independent team sign-ins

Open Team workspace. Owners can use an existing dashboard sign-in or sign in with email and password. Each employee uses their own identity; never share the owner's password or API key. Only a verified, active owner with a full-scope workspace key can enable team administration.

Invitations create a single-use link, not an email. Copy and share it yourself. Links expire in 1–168 hours (default 48); 20 invitations per actor per hour and 100 pending per workspace. The token is stored hashed and placed in the URL fragment, not an HTTP query. New employees get no API key, trial credits or payment access. Existing customers must sign in with the invited address and verify their existing account. Accepting an invitation never replaces their password or personal workspace.

MethodPathPurpose
POST/v1/auth/team-loginEmail/password sign-in; secure HttpOnly cookie
POST/v1/auth/team-sessionConvert a dashboard bearer session into a one-day cookie
POST/v1/auth/team-logoutRevoke the session and remove the cookie
GET/v1/auth/workspacesAvailable workspaces, selection and effective permissions
POST/v1/auth/workspaces/selectSelect workspace_key_id
GET/v1/team/permissionsSupported granular permissions and role defaults
GET/v1/team/membersMembers and effective permissions
PATCH/v1/team/members/{user_id}role and optional extra_permissions
DELETE/v1/team/members/{user_id}Revoke membership; does not delete the identity
GET, POST/v1/team/invitesList or create invitations
DELETE/v1/team/invites/{invite_id}Revoke an unused invitation
POST/v1/team/invites/inspectInspect a token without disclosing the full invited address
POST/v1/team/invites/acceptAccept with token and, for a new identity, name/password
GET/v1/team/auditRecent team actions, limit 1–500

Invitation creation body:

JSON
{"email":"employee@example.test","role":"viewer","expires_in_hours":48,"extra_permissions":[]}

Team endpoints require a human dashboard session, not a raw API key. MCP-scoped sessions cannot select or administer a workspace. Cookie writes and the login/session/accept endpoints require the same Origin as the CreatorAPI website/API. Team sign-in returns no bearer token in JSON. A one-day cookie is Secure, HttpOnly and SameSite=Strict.

Roles and permission boundaries

Viewer reads supported creator data but cannot generate a fresh summary or create/download exports. Operator/member can operate supported creator-data features. Developer can read data and manage exports/webhooks. Admin can manage non-admin members; only the owner can assign or manage administrators. Custom starts empty. Extra permissions are additive to role defaults. Non-owners cannot grant permissions beyond their own or delegate team-administration permissions.

Permission families include accounts, native data, fans, analytics, media, Smart Links, pixels, postbacks, webhooks, data-export, summary-categories and team.members. Use the permission catalog for exact supported names. Some names reserve future surfaces; unmapped or unimplemented endpoints are not enabled by a permission name.

Revocation and role changes apply on the next request. Unknown staff routes are denied before billing. Owner keys, payments, billing administration, creator connection and global administration remain unavailable to staff. Team audit records contain no invitation tokens. Export metadata reads do not issue download URLs to members lacking data-export.manage. Previously issued bearer download URLs retain their documented expiry; treat them as secrets.

Workspace summary categories

Both /v1/fan-summary-categories and /api/fan-summary-categories support GET and POST. PUT and DELETE use /{category_id}. POST/PUT require label and keywords; write access requires a full-scope key and, for staff, summary-categories.manage. Reads require summary-categories.view. These configuration calls are free.

Shell
curl -X POST https://api.creator-api.com/v1/fan-summary-categories \
  -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"label":"Gift preferences","keywords":"gift, wishlist, book"}'

GET/POST/PUT return {"data": ...}; DELETE returns deleted and id. A category has id, immutable key, label, keywords and created_at. At most 10 categories per workspace; labels are 1–100 characters and keywords a comma-separated string of 1–20 distinct terms, each at most 80 characters (1,000 characters total). Invalid input returns 422, duplicate keys/capacity 409 and foreign/missing IDs 404. JSON bodies are limited to 8 KiB.

GET /v1/{account}/fans/{fan_id}/summary uses the calling workspace's categories and cache. A cached result is free; a cache miss or refresh=true requires fan-profile-summary.generate in addition to view access and follows the existing 25-credit admission. Category changes invalidate that workspace's cache. Legacy account-global caches are not reused across workspaces.

With custom categories, retrieval scans at most 500 messages and includes the recent 80 plus at most 120 older keyword-matching fan messages. Custom values are short strings or null when evidence is absent. Labels, keywords and transcripts are untrusted data, not model instructions. history_coverage, when present, describes provider pagination; history_messages_scanned and history_scan_limit describe bounded retrieval, never proof of an unlimited complete history. A generation_id identifies each new result. A timeout may finish into the cache later; the timed-out request is refunded under the existing billing policy.

Read a fan AI summary reliably

Use GET /v1/{account}/fans/{fan_id}/summary. The account is your connected CreatorAPI account ID. On OnlyFans and Fansly, fan_id is the fan's positive numeric platform user ID, without a username prefix. On 4based, use the native user's ID or the conversation's chat ID (24 hexadecimal characters); these IDs are not numeric OnlyFans IDs. A display name is not a valid substitute. Use the same workspace key on every retry.

For 4based, GET /v1/{account}/native/chats?limit=50 returns conversations. Use the selected conversation's _id as fan_id in the summary URL. The account's own _id from /native/me identifies the creator, not the fan. Read that chat with GET /v1/{account}/native/user/{selfId}/chat/{chatId}/message?limit=50 if you need to verify its source history first. A 404 with no messages is not a generated summary. Summary generation supports OnlyFans, Fansly and 4based; it is not enabled for every platform in the native endpoint catalog.

HTTP 200 contains the generated summary, model, message_count, generation_id and cached. A fresh generation follows the 25-credit admission; cache hits are free. The default input is the recent 80 messages, not an unlimited history.

Allow 90 seconds for each HTTP request: the API's interactive deadline is 60 seconds. If generation takes longer, HTTP 503 with error.code=summary_generating means the background job is continuing and may finish into this workspace's cache. Wait before retrying. The examples wait 45 seconds and bound total client waiting to ten minutes. Do not use refresh=true while waiting, and do not treat any other error as a pending job. If this wait expires, inspect the error and retry later; it is not a completed or guaranteed summary. A completed fresh result can also trigger fan_summary.completed on an owned subscribed webhook.

A failed background generation returns error.code=summary_failed with its original generation_id and error message. Inspect that error before retrying; refresh=true deliberately starts a new attempt. Ordinary polling retains recent failures for up to five minutes, subject to process restart and bounded retention. OnlyFans/Fansly history retrieval has a five-minute limit and still rejects incomplete input. This is a limit, not a completion-time guarantee.

Replace both placeholders in URL before running. cURL requires Bash and jq; Python requires requests; JavaScript uses Node.js with built-in fetch.

Shell
CREATOR_SUMMARY_URL='https://api.creator-api.com/v1/{account}/fans/{fan_id}/summary'
CREATOR_SUMMARY_DEADLINE=$((SECONDS + 600))
while (( SECONDS < CREATOR_SUMMARY_DEADLINE )); do
  CREATOR_SUMMARY_REMAINING=$((CREATOR_SUMMARY_DEADLINE - SECONDS))
  CREATOR_SUMMARY_TIMEOUT=$((CREATOR_SUMMARY_REMAINING < 90 ? CREATOR_SUMMARY_REMAINING : 90))
  CREATOR_SUMMARY_RESPONSE=$(curl --silent --show-error --max-time "$CREATOR_SUMMARY_TIMEOUT" \
    -H "X-API-Key: $CREATOR_API_KEY" -H "User-Agent: CreatorAPI-Python/1.0" \
    --write-out '\n%{http_code}' "$CREATOR_SUMMARY_URL") || exit 1
  CREATOR_SUMMARY_STATUS=$(printf '%s\n' "$CREATOR_SUMMARY_RESPONSE" | tail -n 1)
  CREATOR_SUMMARY_BODY=$(printf '%s\n' "$CREATOR_SUMMARY_RESPONSE" | sed '$d')
  if [[ "$CREATOR_SUMMARY_STATUS" == 200 ]]; then
    printf '%s\n' "$CREATOR_SUMMARY_BODY"
    break
  fi
  if [[ "$CREATOR_SUMMARY_STATUS" == 503 ]] &&
     [[ "$(printf '%s' "$CREATOR_SUMMARY_BODY" | jq -r '.error.code // ""')" == summary_generating ]]; then
    (( SECONDS + 45 < CREATOR_SUMMARY_DEADLINE )) || break
    sleep 45
    continue
  fi
  printf 'HTTP %s: %s\n' "$CREATOR_SUMMARY_STATUS" "$CREATOR_SUMMARY_BODY" >&2
  exit 1
done
[[ "${CREATOR_SUMMARY_STATUS:-}" == 200 ]] || { echo "Summary wait expired" >&2; exit 1; }
Python
import json
import os
import time
import requests

URL = "https://api.creator-api.com/v1/{account}/fans/{fan_id}/summary"
KEY = os.environ["CREATOR_API_KEY"]
deadline = time.monotonic() + 600
while True:
    remaining = deadline - time.monotonic()
    if remaining <= 0:
        raise TimeoutError("Summary wait expired")
    response = requests.get(
        URL, headers={"X-API-Key": KEY, "User-Agent": "CreatorAPI-Python/1.0"},
        timeout=min(90, remaining), allow_redirects=False)
    data = response.json()
    if response.status_code == 200:
        print(json.dumps(data))
        break
    if response.status_code == 503 and data.get("error", {}).get("code") == "summary_generating":
        if deadline - time.monotonic() <= 45:
            raise TimeoutError("Summary wait expired")
        time.sleep(45)
        continue
    response.raise_for_status()
    raise RuntimeError("Unexpected summary response")
JavaScript
const KEY = process.env.CREATOR_API_KEY;
const URL = "https://api.creator-api.com/v1/{account}/fans/{fan_id}/summary";
const deadline = Date.now() + 600000;
while (true) {
  const remaining = deadline - Date.now();
  if (remaining <= 0) throw new Error("Summary wait expired");
  const controller = new AbortController();
  const timer = setTimeout(() => controller.abort(), Math.min(90000, remaining));
  let response, data;
  try {
    response = await fetch(URL, {
      headers: {"X-API-Key": KEY, "User-Agent": "CreatorAPI-Python/1.0"},
      signal: controller.signal, redirect: "error"
    });
    data = await response.json();
  } finally { clearTimeout(timer); }
  if (response.status === 200) {
    console.log(JSON.stringify(data));
    break;
  }
  if (response.status === 503 && data?.error?.code === "summary_generating") {
    if (deadline - Date.now() <= 45000) throw new Error("Summary wait expired");
    await new Promise(resolve => setTimeout(resolve, 45000));
    continue;
  }
  throw new Error("HTTP " + response.status + ": " + JSON.stringify(data));
}

Durable lifecycle webhooks

Create a webhook with POST /v1/{account}/webhooks using the key of the workspace whose jobs/results you want. Ownership comes from authentication, never from an owner_key_id supplied in the body. Existing ownerless hooks keep their existing platform-event behavior but do not automatically receive these workspace-specific events. Create a new owned hook to subscribe.

  • data_exports.in_progress: a new export attempt started.
  • data_exports.completed: the attempt produced its downloadable result.
  • data_exports.failed: the attempt failed.
  • data_exports.cancelled: the attempt was cancelled.
  • fan_summary.completed: a new summary, not a cache read, completed.

Export data contains id, dataset, fmt, status, attempt, row_count and status_path. It contains no file paths, download secrets, workspace key IDs or provider exception text. Retry increments attempt; a still-stopping worker returns 409. Retry preserves the original job/reservation policy and does not charge again.

Summary data contains fan_id, generation_id, status, summary, model, message_count, generated_at and history_messages_scanned. It includes the generated brief, which may contain sensitive fan information; it does not include the whole source transcript. There is no fan_summary.failed event in this release.

Source state and outbox rows commit together. The API automatically transfers committed events into the signed delivery queue and attempts HTTPS delivery in bounded background passes. Receiver failures remain in the durable backoff queue for retry. Stable event IDs and transactional receipts avoid duplicate enqueueing after a transfer crash. Only active matching workspace/account hooks created before the event qualify. No historical backfill is implied. Pending outbox entries are retained until transferred; receipts/outbox history currently have no automatic purge.

Consumer delivery uses the existing signed retry queue and its retry/age limits. Delivery is at least once, not exactly once: deduplicate by envelope id and hook. Verify X-CreatorAPI-Signature as sha256= plus HMAC-SHA256 of the exact raw request bytes with the webhook secret. Do not reserialize JSON before checking it. Paused/deleted hooks and expired retry budgets follow existing queue behavior; delivery to every consumer is not guaranteed.

Verification boundary

On 2026-10-14, the public OnlyFans API passed 325 real media/message/queue/revenue/subscription checks and 79 real export/webhook/LLM checks on the owned account pair. Four actual native exports were downloaded and reconciled across CSV, JSONL, XLSX and ZIP; all four completion callbacks and a real80-message LLM summary callback arrived over signed HTTPS. The first60s Summary response was the documented summary_generating state and its cached retry returned the actual result. Test resources, exports, owned hooks, keys and unused test credits were cleaned. No purchases or customer contacts occurred.

Role/category/transactional edge-case checks remain isolated handler/storage tests. Other providers, purchases, full platform-event parity, media-upload lifecycle events, private partner integrations and a proven SEO/lead-decline cause are outside this OnlyFans acceptance.