Full connection flow
Login, 2FA and session handling handled end to end.
Fanvue API authentication is a drop-in connection flow for creator accounts with 2FA support, encrypted session vaulting and automatic session refresh.
import { FanvueAuth } from "@apifanvue/sdk";
const auth = new FanvueAuth({ apiKey: "sk_live_..." });
const { accountId } = await auth.connect({
onTwoFactorRequired: async () => promptUserForCode(),
});
const api = auth.client();
await api.chats.send({ accountId, fanId: "fan_128", text: "Hi" });No Fanvue login is ever shown or stored by your site. Everything is handled by the hosted modal.
Login, 2FA and session handling handled end to end.
AES-256 encryption, per-tenant isolation and auto-refresh.
Two lines of JavaScript, themeable to match your app.
Connect unlimited creators with no cross-contamination.
Per creator, per teammate access control on every key.
Built-in handling for expired sessions and re-authentication.
Every connected Fanvue account gets its own encrypted session vault. Keys can be scoped per project, per teammate or per creator.
import { FanvueAuth } from "@apifanvue/sdk";
const auth = new FanvueAuth({ apiKey: "sk_live_..." });
const { accountId } = await auth.connect({
onTwoFactorRequired: async () => promptUserForCode(),
});
const api = auth.client();
await api.chats.send({ accountId, fanId: "fan_128", text: "Hi" });Once an account is connected, every other Fanvue API module can use it immediately.
Combine the Auth module with ads tracking for revenue attribution, with data download for exports, or see pricing for plan limits.
Get API keys, docs and MCP access in one click. Free trial, no credit card.