Overview
Chidori provides two separate environments to help you develop and test your integration before going live. Each environment is completely isolated with its own data, wallets, and API keys.Environment comparison
| Feature | Sandbox | Live |
|---|---|---|
| Base URL | https://sandbox.chidori.africa | https://api.chidori.africa |
| API Key Prefix | sk_sandbox_ | sk_live_ |
| Real Deliveries | No | Yes |
| Real Payments | No (test wallet) | Yes (real wallet) |
| Driver Assignment | Simulated | Real drivers |
| Webhooks | Fully functional | Fully functional |
Sandbox environment
The sandbox environment is designed for development and testing. Use it to:- Test your integration without affecting real deliveries
- Experiment with different API flows
- Test webhook integrations
- Train your team on the API
Sandbox base URL
Sandbox API keys
Sandbox API keys start withsk_sandbox_:
Test wallet
In sandbox mode, you have access to a test wallet that you can fund with any amount through the Chidori Dashboard:- Go to the Wallet section in your dashboard
- Select your sandbox environment
- Click Fund Wallet and enter any amount
- The funds are added instantly at no cost
Sandbox limitations
- Deliveries are not dispatched to real drivers
- Location updates are simulated (WebSocket not available)
- No real-world delivery tracking
- Data may be periodically cleared
Live environment
The live environment handles real deliveries with real drivers and real payments.Live base URL
Live API keys
Live API keys start withsk_live_:
Going live checklist
Before switching to the live environment, ensure you have:1
Test thoroughly in sandbox
Complete all your integration testing in the sandbox environment.
2
Create live API keys
Generate new API keys with mode set to Live from your dashboard.
3
Update your base URL
Change your API base URL from
sandbox.chidori.africa to api.chidori.africa.4
Fund your live wallet
Add funds to your live wallet through the dashboard or bank transfer.
5
Configure webhooks
Update your webhook URL if needed for production.
6
Monitor your first deliveries
Watch your first few live deliveries closely to ensure everything works as expected.
Switching between environments
To switch between environments, you need to:- Change the base URL in your API client
- Use the appropriate API key (sandbox or live)
Best practices
Use environment variables
Never hardcode API keys. Use environment variables to manage keys for different environments.
Test webhooks in sandbox
Set up and test your webhook handlers in sandbox before going live.
Separate API keys
Create separate API keys for sandbox and live. Never mix them.
Monitor live usage
Keep an eye on your live API usage and wallet balance.
