> ## Documentation Index
> Fetch the complete documentation index at: https://2fans.io/developers/llms.txt
> Use this file to discover all available pages before exploring further.

# Creator sign-up from your platform

> Let creators open their account from your own page: one API call creates it and returns the ID-check link to redirect them to.

- Source: https://2fans.io/developers/guides/creator-signup
- Section: Guides
- OpenAPI: https://2fans.io/developers/openapi.json

Approved CRM apps can create creator accounts server-side. The creator never fills in our sign-up form: you collect their details, call [POST /api/external/v1/accounts](https://2fans.io/developers/reference/create-account.md) with a key your app owner holds, and redirect them to the ID check we return.

> [!NOTE] Ask us first
> Creator sign-up is enabled per app. Ask us to enable it for yours. Call it with a key your app owner holds: their own, or one their agency minted for its personas.

## The flow

1. **Your page** collects the profile (email, handle, display name, bio, country of residence, avatar, banner, subscription price) and shows our Terms of Service, Privacy Policy and 2257 statement with an acceptance checkbox.
2. **Your server** calls create-account. Pass the creator's **browser** IP and user agent from the moment they accepted.
3. **Redirect** the creator to `kycUrl` (a full-page redirect or a new tab, never an iframe).
4. **They come back** to your `kycReturnUrl` with `?kyc=approved|declined|in_review`. Show the matching screen, but don't unlock anything yet.
5. **The decision** arrives as the `account.kyc_updated` [webhook](https://2fans.io/developers/webhooks/overview.md). With `kycStatus: "approved"` the account is `active` and can sell and get paid.

```bash
curl -X POST "https://2fans.io/api/external/v1/accounts" \
  -H "Authorization: Bearer $APP_OWNER_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "valeria@example.com",
    "username": "valeria",
    "displayName": "Valeria",
    "residencyCountry": "SE",
    "avatarUrl": "https://cdn.example.com/valeria/avatar.jpg",
    "subscription": { "priceUsd": 9.99, "interval": "monthly" },
    "legalAccepted": true,
    "acceptedFromIp": "203.0.113.7",
    "acceptedUserAgent": "Mozilla/5.0 …",
    "kycReturnUrl": "https://crm.example.com/onboarding/done"
  }'
```

## What you get back

- `accountId`: keep it. [GET /accounts/{id}](https://2fans.io/developers/reference/get-account.md) shows the status at any time.
- `apiKey`: a key for the new account, bound to your app. Upload media and create drops for the creator with it straight away. Drops stay unsellable until the ID check is approved. The key is shown once.
- `kycUrl`: the ID check, valid for 24 hours. Get a fresh one with [POST /accounts/{id}/kyc-session](https://2fans.io/developers/reference/create-kyc-session.md), for example after a decline.

## Connect the creator to an agency

When the creator will be managed by an agency, collect that consent in your own screen too. No 2fans page, no sign-in, and it works before the ID check is approved.

1. **The agency's key** creates an invite: [POST /agency/invites](https://2fans.io/developers/reference/create-agency-invite.md) returns `inviteToken` (valid 72 hours, used once).
2. **Your page** shows the creator which agency will manage them and what it may do. [GET /agency-invites/{token}](https://2fans.io/developers/reference/get-agency-invite.md) returns both.
3. **The creator's key** (the `apiKey` from create-account) accepts: [POST /agency-invites/{token}/accept](https://2fans.io/developers/reference/accept-agency-invite.md).

```bash
# 1. as the agency
curl -X POST "https://2fans.io/api/external/v1/agency/invites" \
  -H "Authorization: Bearer $AGENCY_KEY" -H "Content-Type: application/json" -d '{}'
# → { "inviteToken": "3f9c…", … }

# 3. as the creator, once they agreed
curl -X POST "https://2fans.io/api/external/v1/agency-invites/$INVITE_TOKEN/accept" \
  -H "Authorization: Bearer $CREATOR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "consent": true, "acceptedFromIp": "203.0.113.7", "acceptedUserAgent": "Mozilla/5.0 …" }'
```

From then on the agency's key acts for the creator with `/v1/creators/{accountId}/…`. Repeating the accept answers 200 with `alreadyAccepted: true`, so a retry after a timeout is safe. It must be the creator's own key: a key the agency created for the creator is refused.

If the creator says no, call [POST /agency-invites/{token}/decline](https://2fans.io/developers/reference/decline-agency-invite.md) with the creator's key instead. The invite stops working and the agency sees it as `declined`.

## Sign-in and email

Without a `password`, we email the creator a link to set one (valid 7 days). With one, the welcome email just points them to sign in. Either way the creator can always use their dashboard directly.

## Commission

Create links with your app's key: [GET /links](https://2fans.io/developers/reference/get-links.md) for the profile, tip and subscribe links, and [POST /links](https://2fans.io/developers/reference/create-link.md) for a drop, a fixed tip amount or a per-fan reference. Each is a plain `https://2fans.io/buy/{id}` (`startapp={id}` in Telegram), and your app is stored with the id. A drop bought, a tip sent or a subscription started through one of your links earns your app owner a commission **for life**, including every renewal of that subscription: **5% of the sale** unless agreed otherwise. It is paid out of our platform fee, never taken from the creator, and lands in the app owner's balance with the rest of their earnings.

Drops your app creates with its key count as yours through any of their links, including the plain `/buy/{productId}`. Other organic sales earn nothing, and so do links created with a personal (non-app) key, even for an account you manage. Always generate links with your app's key. Older template links with a per-fan `externalRef` still count, but only when your app is the only one that has ever generated links for the account, its own key works the account, and the account has no personal key. If your app's owner is the creator's managing agency, there is no commission: the agency share already pays for those sales.

Next: [Broadcast one drop to many fans](https://2fans.io/developers/guides/broadcast-one-drop.md) or [Webhooks & polling](https://2fans.io/developers/webhooks/overview.md).

---

Previous: [Broadcast one drop to many fans](https://2fans.io/developers/guides/broadcast-one-drop.md) · Next: [Pay to Chat from your own chatbot](https://2fans.io/developers/guides/pay-to-chat.md) · All pages: [llms.txt](https://2fans.io/developers/llms.txt)
