Skip to main content
OFAuth provides a sandbox environment for safe development and testing. Use sandbox API keys to test all features without affecting real OnlyFans accounts.
Always use Sandbox for testing logins. Too many login attempts on production OnlyFans accounts can trigger “suspicious activity” detection, which may cause OnlyFans to reset the account.

How Environments Work

The environment is determined by your API key prefix:
Use a Sandbox API key during development and switch to a Live key for production. No code changes needed.

Creating API Keys

  1. Go to OFAuth Dashboard > Developers > API Keys
  2. Create keys for both environments:
    • Sandbox key for development and testing
    • Live key for production

Sandbox Test Credentials

Use these test accounts to complete Link authentication flows: Examples:
Any identifier works (e.g., demo, user123, test). The domain controls the behavior.

What You Can Test


Environment Differences


Switching Environments

Simply change your API key—no code changes required:

Common Troubleshooting

Use good-password for all sandbox test accounts.
Only *-otp.sandbox.com accounts require OTP. The code is always 123456.
Verify the domain format: creator.sandbox.com, creator-otp.sandbox.com, fan.sandbox.com, or fan-otp.sandbox.com.
Sandbox data is deterministic fixtures, not persistent storage. Treat responses as test fixtures.

Next Steps

Quickstart

Get your first API call working

Link Authentication

Connect test accounts