> ## 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.

# Quickstart

> Connect a Sandbox account, select it, and read its profile.

Authorize a sample OnlyFans account in Sandbox and read its profile through the HTTP API.

## Authorize a Sandbox account

1. [Create a Sandbox client](https://docs.ofauth.com/v3/setup/create-integration.md) and register your backend callback URL.
2. [Build an authorization URL](https://docs.ofauth.com/v3/api-reference/link/authorize.md) with the `profile:read` scope, state, and an S256 PKCE challenge. Save the state and verifier on your server for the callback.
3. Open the URL and approve a sample account. When the browser returns, validate the callback and [exchange the code for tokens](https://docs.ofauth.com/v3/api-reference/link/tokens.md#exchange-the-authorization-code).

## Select the account

Set `ACCESS_TOKEN` on your backend from the token response. List the accounts shared with your app:

```bash theme={null}
curl --fail-with-body https://api.ofauth.com/v3/linked-accounts \
	-H "Authorization: Bearer $ACCESS_TOKEN"
```

Choose the sample account from `data` and set `LINKED_ACCOUNT_ID` to its `id`.

## Read the profile

```bash theme={null}
curl --fail-with-body https://api.ofauth.com/v3/access/profile \
	-H "Authorization: Bearer $ACCESS_TOKEN" \
	-H "x-linked-account-id: $LINKED_ACCOUNT_ID"
```

The response contains the sample account's ID, username, and name. Sandbox returns simulated provider data.

Keep tokens and client secrets on your backend. [Tokens and refresh](https://docs.ofauth.com/v3/api-reference/link/tokens.md) describes expiry, renewal, and revocation.


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