# API reference

Source: https://docs.formance.com/v4.0/reference/api/introduction

Stack: v4.0

The Formance stack exposes one REST API per module, all on the same base URL. Each
reference page opens with the resource object, lists its endpoints, and includes
runnable examples generated from the OpenAPI spec.

## How these pages are organized

One page per resource. Each page opens with the object it returns, then lists its
endpoints in the order you would meet them: create, retrieve, list, then the narrower
operations. Every field carries a description and an example value, both generated from
the OpenAPI spec — if a field has no example here, it has no example upstream.

Set your base URL and token once:

```bash
export FORMANCE_API_URL=https://orgID-stackID.eu.sandbox.formance.cloud
export FORMANCE_TOKEN=$(fctl cloud generate-personal-token)
```

## Resources

| Resource       | Surface       | What it covers                                                                                      |
| -------------- | ------------- | --------------------------------------------------------------------------------------------------- |
| Ledger         | 65 endpoints  | Double-entry accounting. The transactional core — most integrations start and stay here.            |
| Payments       | 103 endpoints | Payment service providers, banks and open banking. Ingests external money movement into the ledger. |
| Wallets        | 16 endpoints  | A wallet abstraction on top of the ledger, with holds and balances.                                 |
| Flows          | 35 endpoints  | Multi-step workflows across modules, driven by triggers and events.                                 |
| Reconciliation | 8 endpoints   | Compares ledger state against external statements.                                                  |
| Auth           | 11 endpoints  | OAuth2 clients, secrets and users for the stack.                                                    |
| Webhooks       | 8 endpoints   | Subscribe to stack events and manage delivery configurations.                                       |
| Search         | 2 endpoints   | Full-text search across ledger and payments data (Enterprise Edition).                              |
| Membership     | separate host | Organizations, stacks, regions and users. Lives on the Membership API, not the stack.               |

## Before you start

Read [Authentication](https://docs.formance.com/v4.0/reference/api/authentication) for how to get and send a token, and
[API conventions](https://docs.formance.com/v4.0/reference/api/conventions) for pagination, filtering, idempotency and
the effective-vs-recorded time model. Support varies by module — pagination is universal,
while filtering, idempotency and the bi-temporal fields are Ledger-centric — so the
conventions page scopes each one. The resource pages link there rather than repeating them.
