> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ofauth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Integration playbooks

> Build account, webhook, and media integrations with an AI coding agent.

OFAuth is an independent API platform for OnlyFans, not affiliated with OnlyFans. Apps connect OnlyFans accounts through standard OAuth 2.0 with PKCE, then call typed operations at `https://api.ofauth.com/v3/access/*` with a bearer token and an `x-linked-account-id` header. Start in Sandbox, which returns mock data and never contacts OnlyFans.

These pages are written so AI coding agents, and the people working with them, can get to a working integration quickly. Every page is also available as Markdown: add `.md` to its URL. The full index is at [docs.ofauth.com/llms.txt](https://docs.ofauth.com/llms.txt).

## Quick facts

| | |
| - | - |
| Authorize | `GET https://link.ofauth.com/v3/authorize` (Authorization Code + PKCE `S256`) |
| Token | `POST https://api.ofauth.com/v3/link/token` (`client_secret_basic`, form body) |
| Access | `https://api.ofauth.com/v3/access/*` with `Authorization: Bearer` and `x-linked-account-id` |
| Environments | Sandbox (`ofext_sandbox_`), Test (`ofext_test_`), Live (`ofext_live_`) |
| Access token lifetime | 15 minutes. Refresh tokens are stable and expire after 90 days without authenticated refresh. |
| Webhooks | Standard Webhooks signatures. Lifecycle events are free; Realtime is an add-on. |
| SDKs | TypeScript, Python, Go, and C# SDKs, version 4 |

## Start here

> [card] [What is OFAuth?](https://docs.ofauth.com/v3/agents/playbooks/what-is-ofauth.md)
>
> What OFAuth is, and what it is not

> [card] [Welcome, agent](https://docs.ofauth.com/v3/agents/playbooks/welcome-agent-get-started.md)
>
> Onboarding playbook from zero to a first Access call

> [card] [Which setup do I need?](https://docs.ofauth.com/v3/agents/playbooks/choosing-an-ofauth-setup.md)
>
> Operator or Developer, environments, add-ons, and scopes

> [card] [Agent context files](https://docs.ofauth.com/v3/agents/playbooks/agent-context-files.md)
>
> OFAUTH.md template and the ofauth agent skill

## Task guides

* [How do I add OnlyFans login to a Next.js app?](https://docs.ofauth.com/v3/agents/playbooks/nextjs-onlyfans-login.md)
* [How do I call the OnlyFans API from Python?](https://docs.ofauth.com/v3/agents/playbooks/python-onlyfans-api.md)
* [How do I read and send OnlyFans messages through an API?](https://docs.ofauth.com/v3/agents/playbooks/onlyfans-messages-api.md)
* [How do I receive OnlyFans webhooks?](https://docs.ofauth.com/v3/agents/playbooks/onlyfans-webhooks.md)
* [How do I show OnlyFans media without broken images?](https://docs.ofauth.com/v3/agents/playbooks/onlyfans-media-without-broken-images.md)
* [How do I test an OnlyFans integration without a real account?](https://docs.ofauth.com/v3/agents/playbooks/test-onlyfans-integration.md)
* [How do I handle expired or revoked OnlyFans accounts?](https://docs.ofauth.com/v3/agents/playbooks/handle-expired-onlyfans-accounts.md)

## Background

* [Is there an official OnlyFans API?](https://docs.ofauth.com/v3/agents/playbooks/is-there-an-official-onlyfans-api.md)
* [OnlyFans API providers compared](https://ofauth.com/compare/onlyfans-api-alternatives)
* [OFAuth vs OnlyFansAPI](https://ofauth.com/compare/ofauth-vs-onlyfansapi)
* [OFAuth vs building it yourself](https://ofauth.com/compare/ofauth-vs-building-in-house)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.