Base URL
All API requests are made to:Set up
Health check
Create a customer
Idempotency-Key only when you want the same response back for a safe retry. A new customer create should use a new key.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Make your first requests to the Ledger API (v1).
https://api.ledger.so/v1
export LEDGER_API_KEY="ld_test_..."
curl -sS https://api.ledger.so/v1/health
curl -sS https://api.ledger.so/v1/customers \
-H "Authorization: Bearer $LEDGER_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: create-customer-$(uuidgen)" \
-d '{
"email": "dev@example.com",
"firstName": "Dev",
"lastName": "Example",
"type": "individual"
}'
Idempotency-Key only when you want the same response back for a safe retry. A new customer create should use a new key.