Every access token has the same audience,
https://api.ofauth.com/v3. The environment is a signed claim in the token, taken from the client that requested it.
Sandbox
Use Sandbox for development, CI, and demos. Authorization works end to end and returns mock linked accounts with deterministic fixture data. Sandbox never contacts OnlyFans, so there is no risk of triggering OnlyFans security checks. Sandbox accounts always have Vault+ on. Because the data is mock, Sandbox cannot verify that your integration handles real account states. Use Test for that.Test
Use Test to validate against real OnlyFans accounts you control. Only accounts designated by the integration owner in the dashboard can be shared. Each day a fixed number of Access operations are allowed; when the quota is used up, calls return429 quota_exhausted with Retry-After set to the seconds until the UTC reset.
Live
Live is for your customers. Requirements:- An active Developer plan on your organization.
- Live approval of your External Integration. Request it from the dashboard once your integration works in Test. Approval reviews your purpose statement, scopes, redirect URIs, and privacy policy.
- HTTPS redirect URIs with domain hostnames.
- A
purposestatement on every authorization request.
integration_not_approved. Without the plan, they fail with subscription_required. See Errors.
Switching environments in code
Everything is parameterized by the credentials. Keep one configuration object per environment.Node.js