API Quickstart
Get up and running with the Open Ledger API in minutes.
Prerequisites:
- Node.js v16+ for React integration
- React v18+ for React Hooks
- Package manager (npm, yarn, or pnpm)
- Open Ledger account with API credentials
Request an API Key
Contact our team at openledger.com/contact to request API credentials for your integration.
Your API secret will only be provided once. Make sure to store it securely. If lost, you’ll need to contact us for a new key.
Open Ledger provides different environments for development and production:
Authenticate with the API
First, you’ll need to generate an access token using your developer credentials:
The response will contain your access token:
Save this token - you’ll need it for all subsequent API calls in the Authorization
header as Bearer {access_token}
.
Create Your First Entity
An “entity” in Open Ledger represents a set of financial records for your business. Create one using the access token:
The response will include your new entity’s ID, which you’ll need for future API calls.
Explore the API with Postman
We provide a Postman collection to help you explore all available endpoints:
- Download the Open Ledger API Postman Collection
- Import the collection into Postman
- Create a new environment with these variables:
bearerToken
: Your access tokendeveloperId
: Your developer IDapiKey
: Your API keyentityId
: The ID of the entity you just created
- Start exploring the API endpoints
The Postman collection includes examples for all major API endpoints, including transactions, accounts, and reports.
Next Steps
Now that you’ve implemented Open Ledger, explore these resources to enhance your integration:
Support
For enterprise support and custom integrations, please contact our sales team.