# Introduction

import { Mermaid } from "zudoku/mermaid";

The Load Market Tracking API lets freight brokers, carriers and TMS platforms track a truck
driver by US or Canadian phone number, or a truck through the carrier's ELD. You create a tracking for a load, the driver accepts it in the
free Load Market driver app, and you get the live position, stop arrivals, ETAs and the driver's BOL/POD
photos - by polling or through signed webhooks or by calling specific endpoint.

Tracking items created through the API use the Load Market driver app by default: the driver's phone
reports its position about every 20 seconds. For organizations Load Market enabled, a tracking can
instead follow the truck's ELD, with the carrier's approval, or both - see
[ELD and Hybrid tracking](/eld-tracking). With the organization's client key you can also read tracking
items created in the Load Market web app through the same endpoints - see
[Authentication](/authentication#who-can-see-a-tracking).

## What you can build

- **Load visibility in your TMS** - create a tracking when a load is dispatched and show the live
  position next to the load.
- **Customer updates** - share the Live Tracking Link (`publicLink`) or turn on Automated Location
  Updates (email reports on a schedule).
- **Appointment monitoring (PRO plan)** - send stop appointment times and read the Smart Arrival Alerts
  status (`onTime`, `tight`, `late`) per stop.
- **Fraud screening (PRO plan)** - see [Potential Fraud Alerts](/fraud-alerts) about the driver's phone
  (jailbroken device, emulator, VPN, location outside the US and Canada) next to the load.
- **Proof of delivery** - receive the files the driver uploads (BOL, POD).
- **Tracking without the driver app** - follow the truck through the carrier's ELD
  ([ELD and Hybrid tracking](/eld-tracking)).

## How it works

<Mermaid
  chart={`
sequenceDiagram
    participant TMS as Your system
    participant API as Load Market API
    participant App as Driver app
    TMS->>API: POST /create-tracking (driverPhone, refId, stops)
    API-->>TMS: trackingId, status request
    API->>App: Push notification (or SMS invite to install)
    App->>API: Driver accepts, shares location
    API-->>TMS: Webhook every minute while something changes
    TMS->>API: GET /get-tracking (optional polling)
    TMS->>API: PATCH /stop-tracking when the load is delivered
`}
/>

## Endpoints

All endpoints live under `https://api.load-market.com/v1`.

| Method | Path | What it does |
| --- | --- | --- |
| `POST` | `/create-tracking` | Send a tracking request to a driver |
| `PATCH` | `/edit-tracking` | Change reference, notes, custom id, driver type, TMS contact or stops |
| `GET` | `/get-tracking` | Full state of one tracking, optional ETA and driver address |
| `GET` | `/get-all-tracking-items` | Active list or paginated history of your organization |
| `PATCH` | `/stop-tracking` | Finish a tracking |
| `DELETE` | `/delete-tracking` | Delete a tracking and its data |
| `GET` | `/get-reports` | Location history of a tracking |
| `POST` | `/test/simulate` | Drive a test tracking (test key only) |
| `GET` | `/health` | Uptime check, no key needed |

Webhooks push the same data object as `GET /get-tracking` to your endpoint, without the optional ETA and
driver address, `driverFiles` is included only when the driver uploaded a file. See
[Webhooks](/webhooks).

## Next steps

1. [Get API access](/get-api-access) - request your partner keys.
2. [Quickstart](/quickstart) - create, simulate and read a test tracking in 5 minutes.
3. [API reference](/api) - every field, with a built-in playground.

You can also explore the API in the [Swagger console](/swagger-console) or
import the <a href="/loadmarket-api.postman_collection.json" download reloadDocument>Postman collection</a>.
The machine-readable spec is at <a href="/openapi.json" reloadDocument>/openapi.json</a> (OpenAPI 3.1),
and an index for AI assistants at <a href="/llms.txt" reloadDocument>/llms.txt</a>.
