Sandbox
Sandbox
The Sandbox is a separate copy of the FleetTrack API backed by QA data, not your live fleet. Use it to build and test an integration, including the write route that corrects events, without touching production.
| Production | Sandbox | |
|---|---|---|
| Base URL | https://api.fleettrack.com/external/api/v1 | https://fleet-track-qa-b4da89e.zuplo.app/external/api/v1 |
| Data | Your live account | QA test accounts |
| API key | Production key from API Keys | Sandbox key from Sandbox API key |
The two keys are not interchangeable. A production key sent to the Sandbox, or a Sandbox key
sent to production, is rejected with 401.
1. Create your Sandbox key
- Sign in to this portal.
- Open Sandbox API key in the top menu and click Create Sandbox key.
- The first time, your request for Sandbox access is sent to LB Technology. Sandbox access is approved separately from production access, because the Sandbox is linked to a QA test account rather than your live one. Once you're approved, return to the page and click Create Sandbox key again.
- Click Reveal or Copy to get the key. It stays on this page, so you can come back for it later. Keep it secret all the same.
Each person has one Sandbox key. To have it replaced or removed, contact LB Technology.
2. Try it in the API Reference
Every operation in the API Reference has a Test button that opens a request form. The code samples on those pages show the production URL, which is what you'll use in your integration. The Test form always sends to the Sandbox, never to production:
- Sign in, and make sure you've created your Sandbox key.
- Click Test and, under Authentication, choose Sandbox (QA data) – your Sandbox key. Your Sandbox key is attached for you.
- Use the account ID your Sandbox access was approved for in
account_id, then send. The response panel lists the Sandbox host under Request Headers.
Production keys don't work in the form: the Sandbox rejects them with 401.
3. Call it from code
Code
Switching to production later only changes the base URL and the key.
4. Use the Postman collection
Download the FleetTrack External API collection
and the Sandbox environment, and import both
into Postman. Select FleetTrack Sandbox as the active environment and set apiKey (and
writeApiKey, if you correct events) to your Sandbox key, plus accountId. Put them in the
Current value column so they aren't synced. With no environment selected, the collection
calls production.
Good to know
- Rate limits, error codes and response shapes are the same as production.
- QA data is reset and changed from time to time. Don't rely on specific records staying put.
- The network rules in Getting started apply here too. Traffic from cloud hosting providers is blocked unless your egress addresses have been allowed.