Skip to main content

API keys

Create API keys from the Ledger Dashboard. Each key is scoped to an environment:
  • Sandbox — keys start with ld_test_. No real money moves.
  • Live — keys start with ld_live_. Real funds, real cards, real bank transfers.
Key format: ld_<env>_<prefix>_<secret>

Sending your key

Include your API key in every request using either header format:
curl https://api.ledger.so/v1/customers \
  -H "Authorization: Bearer ld_test_..."

Environments

All resources are scoped to the API key that created them. A sandbox key cannot access live resources and vice versa.
EnvironmentKey prefixBase URL
Sandboxld_test_https://api.ledger.so/v1
Liveld_live_https://api.ledger.so/v1