# 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](/sandbox-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

1. Sign in to this portal.
2. Open **[Sandbox API key](/sandbox-key)** in the top menu and click **Create Sandbox key**.
3. 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.
4. 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](/api) 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:

1. Sign in, and make sure you've created your Sandbox key.
2. Click **Test** and, under **Authentication**, choose **Sandbox (QA data) – your Sandbox
   key**. Your Sandbox key is attached for you.
3. 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

```bash
curl -H "Authorization: Bearer $FLEETTRACK_SANDBOX_KEY" \
  "https://fleet-track-qa-b4da89e.zuplo.app/external/api/v1/asset-day-summary?account_id=YOUR_SANDBOX_ACCOUNT&device_id=YOUR_DEVICE&from=2026-09-01T00:00:00Z&to=2026-09-03T23:59:59Z"
```

Switching to production later only changes the base URL and the key.

## 4. Use the Postman collection

Download the [FleetTrack External API collection](/FleetTrack-External-API.postman_collection.json)
and the [Sandbox environment](/FleetTrack-Sandbox.postman_environment.json), 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](/introduction) apply here too. Traffic from cloud
  hosting providers is blocked unless your egress addresses have been allowed.
