Skip to main content

Base URL

All API requests are made to:
https://api.ledger.so/v1

Set up

export LEDGER_API_KEY="ld_test_..."

Health check

curl -sS https://api.ledger.so/v1/health

Create a customer

curl -sS https://api.ledger.so/v1/customers \
  -H "Authorization: Bearer $LEDGER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: demo-create-customer-1" \
  -d '{
    "email": "[email protected]",
    "firstName": "Dev",
    "lastName": "Example",
    "type": "individual"
  }'