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/enterprise-service | https://api.chidori.africa/enterprise-service |
| 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: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.
