# Try the Sandbox

Source: https://docs.formance.com/v4.0/getting-started/sandbox

Stack: v4.0

A sandbox is a free, fully-managed Formance Cloud stack you can use for design, testing, and learning. Same APIs, same modules, same data model as a production stack — with a few production-only enforcement differences called out below.

## What you get

- **Ledger, ready to use.** A Stack v4.0 installs the Ledger module by default. Other modules are not installed by default.

* **A real HTTPS endpoint.** Each stack gets its own URL on `*.<region>.sandbox.formance.cloud`. Call it from anywhere: your laptop, CI, a deployed app.
* **The Portal** at [portal.formance.cloud](https://portal.formance.cloud) to manage organizations, stacks, members, and OAuth clients.
* **The Console** at [console.formance.cloud](https://console.formance.cloud) to browse ledgers, accounts, transactions, and connector payments visually.

Near-production parity

The API surface, modules, Numscript semantics, and data model match a production stack: your Numscript programs, transaction validation, and webhooks behave the way they will in production, so you design and test against the real thing rather than a mock.

Parity stops at production-only enforcement. Sandbox is more relaxed on some security checks, which makes authentication and authorization the one area where code that passes on sandbox can still fail in production — the OAuth scope difference below is the case that bites in practice.

Sandbox is more permissive on OAuth scopes

The auth service on sandbox doesn't enforce OAuth2 scopes — a `client_credentials` token request that omits `scope` still gets you a working token. **Production enforces scopes per [RFC 6749 §3.3](https://datatracker.ietf.org/doc/html/rfc6749#section-3.3)**, so the same code that works on sandbox returns `401` against a production stack.

If you're using the [Formance SDK](https://docs.formance.com/v4.0/getting-started/connect-app), this is handled for you. If you're integrating raw OAuth, include `scope` in the token request:

```bash
curl --request POST \
  --url $STACK_URL/api/auth/oauth/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=client_credentials \
  --data client_id=$CLIENT_ID \
  --data client_secret=$CLIENT_SECRET \
  --data scope=ledger:read
```

Scopes are `<module>:read` and `<module>:write` — reads accept either, writes require `:write`. For more than one, pass the space-delimited value through `--data-urlencode` so the space is encoded instead of splitting into a second argument: `--data-urlencode 'scope=ledger:write payments:read'`.

## Get a sandbox

Sign in (or create an account — it's free) on the Portal:

[Create your free Formance Cloud account](https://portal.formance.cloud)

Once you have an account, the [Platform Quick Start](https://docs.formance.com/v4.0/getting-started/quickstart) walks you through installing `fctl`, authenticating, and creating your first sandbox in a few commands.

Sandbox vs production

Sandboxes are sized for design and test, not production. Data inside is correct and the modules behave the same way functionally — but we don't run backups, the stack sleeps after prolonged inactivity (the first request after a sleep takes a little longer to warm up), and it auto-disables after 15 days then deletes after 30. Need yours kept past that window? Ask support to restore it.

Production stacks run with the operational discipline you'd expect from core financial infrastructure: backups, no sleep, SOC 2 Type II and ISO 27001 certified, DORA-compliant, and regular third-party penetration testing.

→ [**Formance Trust Center**](https://trust.formance.com/) — audit reports, sub-processor list, certifications, and the full security posture.

## Next steps

[Platform Quick Start](https://docs.formance.com/v4.0/getting-started/quickstart)

[Connect Your App](https://docs.formance.com/v4.0/getting-started/connect-app)
