Skip to main content
The REST API is a managed HTTP surface over the same capabilities as the SDK. You authenticate with a bearer API key, connect an OnlyFans account once, then call any method or stream realtime events — with nothing to host and no session management of your own.

The flow

1

Authenticate

Send your API key as a bearer token. Confirm it with GET /v1/me. See Authentication.
2

Connect an account

POST /v1/connect/* links an OnlyFans account and returns an account id. See Connect an account or the connect flows.
3

Act on it

POST /v1/accounts/{id}/{resource}/{method} calls any SDK method. Enumerate them with GET /v1/sdk/methods.
4

Receive events

Stream over SSE or register a webhook.

Two API surfaces

This reference documents the platform API (/v1/*) — the endpoints you call to manage and act on accounts. The OnlyFans API surface that the SDK wraps is documented as typed SDK resources; reach any of it through the generic SDK passthrough below.

Calling any SDK method

The single most useful endpoint is the SDK passthrough:
It maps onto of.{resource}.{method}(...args) and returns { "result": ... }. Use the endpoint pages in this section for the managed endpoints (connect, accounts, webhooks, events) and SDK resources for the method catalog.