Environments
| Environment | Base URL | API Key Prefix | Purpose |
|---|---|---|---|
| Live | https://api.bota.dev/v1 | sk_live_ | Production data and billing |
| Test | https://api.sandbox.bota.dev/v1 | sk_test_ | Development and testing |
API Keys
Each project has separate API keys for test and live environments:Key Types by Environment
| Key Type | Test Mode | Live Mode |
|---|---|---|
| Secret key | sk_test_* | sk_live_* |
| Restricted key | rk_test_* | rk_live_* |
| Device token | dtok_test_* | dtok_live_* |
| Upload token | up_test_* | up_live_* |
Test Mode Behavior
What’s the Same
- All API endpoints work identically
- Request/response formats are identical
- Rate limits apply (but are more lenient)
- Webhooks are delivered normally
- Error codes and messages match production
What’s Different
| Feature | Test Mode | Live Mode |
|---|---|---|
| Data persistence | Cleared periodically | Permanent |
| Transcription | Simulated (instant) | Real ASR processing |
| Billing | Not charged | Usage is metered |
| Rate limits | 1000 req/sec | 100 req/sec |
| Webhooks | Delivered normally | Delivered normally |
| Device tokens | Valid indefinitely | Expire per policy |
Test mode transcriptions return simulated results instantly. This is useful for testing your integration flow without waiting for real processing.
Simulated Responses
Transcription
Test mode transcriptions complete immediately with simulated content:Summary
Test mode summaries are also simulated:Testing Webhooks
Webhooks in test mode work exactly like production. Events are delivered to your configured endpoints with valid signatures.Testing Locally
Use a tunneling service like ngrok to receive webhooks during local development:Test Event Triggers
You can trigger test webhook events manually:Going Live Checklist
Before switching from test mode to production:1
Update API keys
Replace
sk_test_* keys with sk_live_* keys in your production environment2
Update base URL
Change from
api.sandbox.bota.dev to api.bota.dev3
Verify webhook endpoints
Ensure your production webhook URLs are configured and accessible
4
Test with real devices
Verify BLE pairing and upload flows work with actual hardware
5
Monitor initial requests
Watch for errors in your first production API calls
Environment Variables
We recommend using environment variables to manage your API configuration:Data Cleanup
Test mode data may be cleared periodically. Do not rely on test mode for persistent storage. If you need to manually clean up test data:Deleting an EndUser also deletes all associated recordings, transcriptions, and summaries.

