Skip to main content
You move your whole organization from V2 to V3 in one guided flow in the OFAuth dashboard. This guide covers the code changes your app needs before and after cutover. Prepare your V3 integration and import script before cutover, run cutover in the dashboard, then download and import the one-time account token bundle.
Using a coding agent? Migrate with an AI agent: install the migration skill and your agent makes these code changes for you to review.
The move is a hard cut. At cutover, V2 stops serving your migrated connections, and V3 has no compatibility layer for V2 API keys, /v2/* routes, or the raw access proxy. Prepare and deploy your V3 integration before you schedule cutover.
Creators do not need to reconnect. Every Live connection moves with its ID, its OnlyFans session, and its mapped permissions.

What changes

What moves

What is removed

Concept map

Permissions to scopes

Each migrated connection keeps its own V2 permissions, mapped to V3 scopes. Nothing is widened, and there is no review wait. The extra queue:* and users:read scopes cover operations those V2 permissions already allowed. V3 lists scheduled posts and queued mass messages under queue:*, and blocked and restricted users under users:read.

Route map

Most V2 Access routes move from /v2/access/* to /v3/access/* with the same path. Routes whose path or contract changed are listed below.

Account & linked accounts

Posts, stories & vault

Uploads use a new flow in V3: POST /v3/access/uploads/start, PUT /v3/access/uploads/:mediaUploadId/parts/:partNumber, then PUT /v3/access/uploads/:mediaUploadId/finalize or POST /v3/access/uploads/finalize (vault:write). See Upload media.

Earnings & analytics

Prepare before cutover

1

Save your Live callbacks and client secret

The dashboard migration wizard pre-fills Live callbacks from your V2 redirect URLs. Review them, add any dedicated reconnect return URL if needed, and save the Live client secret where your backend runs. It is shown once.
2

Build the V3 OAuth flow for new users

New users connect through V3 OAuth. Follow Authorize and Tokens and refresh. GET https://link.ofauth.com/v3/authorize replaces POST /v2/link/init, and your callback receives code and state instead of a connection ID. Store each user’s stable refresh_token encrypted at rest.
3

Rehearse in Test

Complete an OAuth exchange with your Test client and make at least one successful Access call against a Test account.
4

Verify your Live client credentials

Confirm your backend can authenticate against POST https://api.ofauth.com/v3/link/token with your Live client ID and secret.
5

Update your webhook receivers

V3 signs deliveries with the same Standard Webhooks scheme and whsec_ secret, but renames the headers:Deploy a receiver that accepts both header sets before cutover (example below) and handles V3 lifecycle events.
6

Deploy your account bundle import

Build and deploy the one-time import script described in Switch your accounts to V3 so you can run it immediately after cutover finishes.

Dual-header webhook verification

Until cutover, V2 still sends svix-* headers. This receiver accepts both header sets so you can deploy it before cutover:
The migration itself sends no webhook events.

After cutover on V2

Every V2 response for a migrated connection returns 401:
Live V2 API keys for a migrated organization are disabled when cutover finishes. Remove them from your configuration.

Switch your accounts to V3

When cutover finishes, an organization owner downloads a one-time account bundle (ofauth-migrated-accounts-<organization>-<date>.json) from the migration page in the dashboard. It contains one V3 refresh token for each migrated Live account.
From cutover until you import the bundle, API calls for your migrated accounts fail. Treat the bundle like your client secret: never commit it, paste it into an agent chat, or share it. Run the import yourself, then delete the file.
The bundle is issued when your organization migrates to a Developer plan (or Developer + Operator). Operator-only migrations have no API bundle.

Import the bundle

Exchange each account’s refresh_token once to verify and store a fresh access token alongside the stable refresh token:
From here on, each account is a standard V3 session:
  • Store tokens keyed by linked_account_id, even when multiple accounts share an authorization_id.
  • Access tokens are opaque and expire after 15 minutes (expires_in: 900).
  • Refresh tokens are stable and client-bound: each refresh returns a new access token and the same refresh token. Concurrent refreshes across backend instances and retries after lost responses are safe.
  • Refresh tokens expire after 90 days without a successful authenticated refresh.

Regenerate the bundle

If the bundle file is lost before or during import, an owner can regenerate it from the migration page (rate-limited to once per 60 seconds). Regenerating revokes every token issued from the previous bundle and issues fresh ones without affecting tokens created through your own OAuth flows.

Call V3 with the same account ID

Reconnecting migrated accounts

For normal expired sessions, create a targeted reconnect journey with POST /v3/linked-accounts/{id}/reconnect (client.linkedAccounts.createReconnect). If a migrated creator reconnects through your Live OAuth flow (GET https://link.ofauth.com/v3/authorize), OFAuth matches the verified OnlyFans account to its migrated connection and claims it in place (preserving the connection ID, installation, and grants). If that creator owns additional migrated accounts in your organization, you can pass their IDs as a comma-separated linked_account_ids query parameter on the authorize request to consolidate them under the same holder in one step.

Webhook events

V2 connection.* events are replaced by authorization.* and linked_account.* lifecycle events. See System Webhook Events for full payload details. Lifecycle deliveries are not billed. Payloads carry IDs only; call GET /v3/linked-accounts for names, status, and scopes.

Realtime over Server-Sent Events

V3 Realtime uses Server-Sent Events (SSE) instead of WebSockets:
  • Backend stream: GET https://api.ofauth.com/v3/realtime/events?linkedAccountId=<account_id> with Accept: text/event-stream and Authorization: Bearer <access_token>. See Realtime OnlyFans events.
  • Browser stream: call POST https://api.ofauth.com/v3/realtime from your backend to mint a short-lived EventSource URL without exposing access tokens to the browser. See Realtime from the browser.
Lifecycle events arrive by webhook only; SSE streams carry OnlyFans Realtime activity events.

Authorization server discovery

RFC 8414 metadata is published at:
  • Issuer: https://api.ofauth.com/v3/link
  • Authorization endpoint: https://link.ofauth.com/v3/authorize
  • Token endpoint: https://api.ofauth.com/v3/link/token
  • Revocation endpoint: https://api.ofauth.com/v3/link/revoke
  • Userinfo endpoint: https://api.ofauth.com/v3/link/userinfo

Pricing

Migrating organizations receive 30% off the first month of the V3 plan they choose (Developer Build keeps its 50% 6-month launch offer instead; discounts do not stack). V2 billing stops at cutover.

FAQ

No. Migrated accounts keep their OnlyFans session. Creators only reconnect if OnlyFans ends the session, as on V2.
Yes. Every migrated account keeps its exact ID. Send it in x-linked-account-id on V3.
Typed V3 Access operations. If an OnlyFans path you rely on has no V3 operation, contact support@ofauth.com with the path before scheduling cutover.
Access tokens last 15 minutes (expires_in: 900). Refresh tokens are stable and expire after 90 days without a successful refresh.
Send the user through OAuth authorization again to get a new credential in the same authorization. If you lose the one-time migration bundle before importing, an owner can regenerate the bundle.
No. The whole organization moves together: every Live client app and every Live connection. V2 Sandbox apps, keys, and connections are not migrated; set up V3 Sandbox and Test fresh.