Load Market
Load Market Tracking API

Create, edit, read, list, stop and delete tracking items.


Create a tracking

POST
https://api.load-market.com/v1
/create-tracking
x-api-key (header)
+x-api-client-key (header)
or
x-api-key (header)

Sends a tracking request to the driver's phone and returns the new trackingId.

  • Driver has the Load Market driver app (the phone number is registered): the tracking is created with status request ("Pending driver's approval") and the driver gets a push notification to accept it.
  • Driver does not have the app yet: a pending installation tracking is created (status request, description "Pending installation") and the driver receives an SMS invitation. It turns into a regular tracking, with the same trackingId, once the driver installs the app and signs in with this phone number.
  • schedule instead of expDate: the tracking is created with status scheduled and starts automatically at schedule.start (driver invitation included). No webhooks are sent before that.
  • ELD only (trackingSource: eld): the truck is tracked through the carrier's ELD instead of a phone. The carrier gets an email to approve the request, and the tracking waits with status requestEld ("Pending ELD admin approval") until it does. No text message is sent and driverPhone is not used. With schedule the status is scheduledEld.
  • Hybrid (trackingSource: hybrid): the truck's ELD and the driver's phone. The driver is invited as above and the carrier gets the approval email. The status is requestEld until the driver accepts or the carrier approves, whichever comes first.

ELD and Hybrid. Load Market enables them per organization (otherwise 403 ELD_TRACKING_NOT_AVAILABLE), and they need the organization's client key: created by mcNum / dotNum the request answers 400 CLIENT_KEY_REQUIRED unless your partner key is allowlisted for that organization. The carrier must have connected its ELD to Load Market. Before anything is saved the create checks the carrier (eld.carrierDotNumber), its ELD connection and the truck (eld.truckNumber) with the carrier's ELD provider, so it can take a few seconds longer than a phone-only create. For an ELD only tracking driverPhone and loadInstructions are ignored and the emails never carry the Live Tracking Link (emailUpdates.realTimeTrackingLink is always false). See the ELD and Hybrid tracking guide.

Organization. Send the organization's client key in x-api-client-key (recommended). Without it the organization is resolved from mcNum / dotNum in the body (mcNum wins when both are sent, and neither answers 400 ORG_IDENTIFIER_REQUIRED). Partners that are not allowlisted for number-based creation receive 400 CLIENT_KEY_REQUIRED. This rule is being rolled out and is enforced per partner - until enforcement it runs in shadow mode (the request is logged and allowed).

Billing. Every tracking consumes 1 tracking request of the organization's plan, or 2 when it spans more than 5 days (billingWeight). The create is refused with 400 TRACKING_LIMIT_REACHED only when this tracking would exceed the plan's allowance - the last tracking request of the plan is usable. If the last payment for the organization's plan failed, the create is refused with 400 PAYMENT_FAILED until the organization admin updates the payment method and the payment goes through. Organizations without a paid plan are on the Free plan (5 one-time tracking requests). Stop expectedArrival (Smart Arrival Alerts) requires the PRO plan (the VIP plan includes it). ELD and Hybrid tracking items are billed the same way.

Idempotency. A create is billed, and a request that timed out may still have created the tracking. Send an Idempotency-Key header (any unique value, for example a UUID or your load id plus an attempt counter) and retry with the SAME key: a key that already created a tracking answers that create's response again, with the header Idempotent-Replayed: true, and nothing new is created or billed. The same key with another request body answers 409 IDEMPOTENCY_KEY_REUSED, and while the first create with the key is still running 409 IDEMPOTENCY_IN_PROGRESS with Retry-After. Only a successful create is remembered (24 hours): an error answer frees the key, so the same key can be retried after a 5xx or after fixing a 4xx. A 5xx can still mean the tracking was written - look for your customId in the active list before you retry it.

Test keys. Nothing is sent to a driver and nothing is billed: the plan allowance is neither checked nor consumed (apiUsage shows the current usage), while the PRO plan check still applies. The client key is required: without it the request answers 400 ORG_IDENTIFIER_REQUIRED ("MC or DOT number is required"), or 400 CLIENT_KEY_REQUIRED when mcNum / dotNum was sent. driverPhone 5555550100 simulates a driver who has the app. Any other valid number simulates a pending installation. The tracking id starts with api-test-, the response carries testMode: true. A test tracking lasts at most 24 hours: expDate / schedule.end further out answers 400 EXP_DATE_INVALID / SCHEDULE_INVALID. A test key can create 200 test tracking items per UTC day (429 TEST_LIMIT_REACHED) and send 60 requests per minute (429 RATE_LIMITED). With trackingSource eld or hybrid only the shape of the eld block is checked - no carrier, ELD provider or truck lookup - and the carrier's side is driven with the carrier.* events of POST /test/simulate. A hybrid with driverPhone 5555550100 starts in the driver's app, any other number as pending installation.

Create a tracking › Headers

Idempotency-Key
​string · maxLength: 255

Makes the create safe to retry. A unique value of 1 to 255 visible ASCII characters without spaces (for example a UUID). The same key with the same request answers the first create's response for 24 hours. See create-tracking.

Example: 3f6c1b1e-6a7e-4d0f-9f0b-2a4c0e1d5b77

Create a tracking › Request Body

Exactly one of `expDate` or `schedule` is required. The organization comes from the `x-api-client-key` header, or from `mcNum` / `dotNum` when no client key is sent. `driverPhone` is required unless `trackingSource` is `eld`. `eld` is required when `trackingSource` is `eld` or `hybrid`, and ignored otherwise. Every field is checked against its type and limits below: a value of another type, or over its limit, answers `400` with the field's code. Fields not listed here are ignored.
refId
​string · minLength: 1 · maxLength: 200 · required

Your load or reference number, shown to the driver and in the Load Market app. Missing or empty answers 400 REF_ID_REQUIRED, another type or more than 200 characters 400 REF_ID_INVALID.

Example: LM-48213 CHI-DAL
mcNum
​integer · min: 1

Organization MC number. Used only without x-api-client-key, and wins over dotNum. Anything but a positive whole number answers 400 ORG_IDENTIFIER_INVALID.

Example: 100001
dotNum
​integer · min: 1

Organization US DOT number. Used only without x-api-client-key. Anything but a positive whole number answers 400 ORG_IDENTIFIER_INVALID.

Example: 2000002
driverPhone
​integer

Driver's US or Canadian mobile phone number as a JSON number, 10 digits without the country code. An 11-digit number starting with 1 is accepted and the 1 is stripped. The driver gets the app link by text message, so a number that no US or Canadian phone can have (an area code or exchange starting with 0 or 1, such as 0004344444 or 1234567890) is rejected with 400 DRIVER_PHONE_INVALID. Required unless trackingSource is eld, which ignores it.

Example: 5555550100
expDate
​integer · int64

Tracking expiration, epoch milliseconds (UTC), in the future and at most 240 hours (10 days) ahead. More than 5 days ahead is billed as 2 tracking requests. Not allowed together with schedule.

Example: 1793800800000
​ScheduleInput

Scheduled tracking window, epoch milliseconds (UTC). The tracking is created with status scheduled, starts automatically once start passes and expires at end. start must not be in the past. The window must be at least 1 hour and at most 240 hours (10 days). A window longer than 5 days is billed as 2 tracking requests.

notes
​string · maxLength: 5000

Internal note, not shown to the driver. Another type or more than 5000 characters answers 400 NOTES_INVALID.

Example: Reefer load
loadInstructions
​string · maxLength: 5000

Instructions shown to the driver in the Load Market driver app. Ignored for an ELD only tracking.

Example: Call the receiver 30 min before arrival. Dock 12.
​EmailUpdatesInput

Automated Location Updates (email updates). Choose the cadence with intervalMinutes OR scheduledTimes (not both), or neither when you only want file or stop-status notifications. At least one of intervalMinutes, scheduledTimes, driverAttachedFilesNotification, stopStatusEmails must be set. Both cadences run for the whole tracking.

customId
​string · maxLength: 200

Your own id for the tracking, returned on every read. Another type or more than 200 characters answers 400 CUSTOM_ID_INVALID.

Example: tms-load-48213
driverType
​string · enum

Case and surrounding spaces do not matter, and an empty string means solo. Any other value answers 400 DRIVER_TYPE_INVALID.

Enum values:
solo
team
Default: solo
​StopLocationInput[] · maxItems: 50

Up to 50 stops.

​CreatedByTms

Contact shown to the driver in the Load Market driver app as the person who requested the tracking (instead of a Load Market user).

​object

Free-form metadata stored with the tracking, a JSON object of up to 20 KB (400 METADATA_INVALID otherwise). Only metadata.shipmentId is returned on reads.

Example: {"shipmentId":"SHP-48213"}
trackingSource
​string | null

What tracks the load:

  • mobile (default) - the driver's phone.
  • eld - the truck's ELD only, no phone. Needs eld.
  • hybrid - the truck's ELD and the driver's phone. Needs eld and driverPhone.

Absent, null or an empty string means mobile. Case and surrounding spaces do not matter. eld and hybrid need an organization Load Market enabled for ELD tracking (403 ELD_TRACKING_NOT_AVAILABLE) and the organization's client key. Any other value answers 400 TRACKING_SOURCE_INVALID for such an organization and is ignored for the others. See the ELD and Hybrid tracking guide.

Example: eld

The truck an eld or hybrid tracking follows. The carrier must have connected its ELD to Load Market. The create checks the carrier, its ELD connection and the truck before anything is saved. A shape error answers 400 ELD_DATA_INVALID.

Create a tracking › Responses

Tracking created (or, with an Idempotency-Key used before, the response of that create).

message
​string · required

Tracking request created, Pending tracking created or Scheduled tracking created. ELD and Hybrid answer Tracking request created (or Scheduled tracking created) also while they wait for the carrier.

Example: Tracking request created
trackingId
​string · required

Id of the new tracking. Keep it - every other endpoint takes it.

Example: api-7fK2mQ9xLpR4tN8vB1cD
customId
​string | null · required
​StatusObject · required

Tracking status. See the Tracking lifecycle guide for when each value appears.

driverHasApp
​boolean · required

true when the phone number already belongs to a Load Market driver app user. Always false for an ELD only tracking.

billingWeight
​integer · enum · required

Tracking requests consumed - 2 when the tracking spans more than 5 days.

Enum values:
1
2
​ApiUsage · required

Plan usage after this tracking was created. With a TEST key: the current usage, nothing consumed.

schedule
​Schedule

Scheduled tracking window, epoch milliseconds (UTC). null for tracking items that were not scheduled.

testMode
​boolean · const

Present (and true) only when the tracking was created with a TEST key.

Const value:

Edit a tracking

PATCH
https://api.load-market.com/v1
/edit-tracking
x-api-key (header)
or
x-api-key (header)
+x-api-client-key (header)

Updates an existing tracking. Only the fields you send are changed. stopLocations, when sent, replaces the whole stop list (new stops are geocoded like on create). An empty array is ignored. A stop that is still the same stop keeps its arrival/departure confirmations and its Smart Arrival Alerts status: the same customStopId (at any position), within 100 m of where the stop was. Without ids a stop keeps them at the same position and place, unless stops were removed or inserted and another stop of the list is at the same place (a round trip's return and its pickup) - send customStopId to keep them in every case. Any other stop starts without them. Changing only a stop's expectedArrival keeps the stop and recomputes its Smart Arrival Alert. Before 2.6.0 every stop started over.

The expiration date, schedule, load instructions and email settings cannot be changed through this endpoint.

The response status is the stored status (without the live refinements such as notMoving) - call get-tracking for the live status.

Visibility. A tracking is visible to the partner key that created it, or to any partner key when the organization's client key is sent in x-api-client-key. This ownership rule is being rolled out and is enforced per partner - until enforcement it runs in shadow mode (the request is logged and allowed).

Known v1 quirk. An unknown trackingId returns 404 TRACKING_NOT_FOUND here, while get-tracking, stop-tracking, delete-tracking and get-reports answer 400.

Edit a tracking › query Parameters

trackingId
​string · required

The trackingId returned by create-tracking.

Example: api-7fK2mQ9xLpR4tN8vB1cD

Edit a tracking › Request Body

Fields to change. Only the fields you send are updated. Each one is checked like on create: a value of another type, or over its limit, answers `400` with the field's code.
refId
​string · minLength: 1 · maxLength: 200

An empty string or null answers 400 REF_ID_INVALID - leave the field out to keep the current reference.

Example: LM-48213 CHI-DAL
notes
​string · maxLength: 5000
customId
​string · maxLength: 200
driverType
​string · enum

Case and surrounding spaces do not matter, and an empty string changes nothing.

Enum values:
solo
team
​StopLocationInput[] · maxItems: 50

Replaces the whole stop list (up to 50 stops). An empty array is ignored. A stop that is still the same stop (the same customStopId within 100 m, or without ids the same position and place - see edit-tracking) keeps its arrival/departure confirmations and Smart Arrival Alerts status. Any other stop starts without them.

​CreatedByTms

Contact shown to the driver in the Load Market driver app as the person who requested the tracking (instead of a Load Market user).

Edit a tracking › Responses

Tracking updated.

message
​string · required

Tracking request updated or Pending tracking updated.

Example: Tracking request updated
trackingId
​string · required
customId
​string | null · required
​object · required

The stored status, without the live refinements (notMoving, waiting, settings, noAccount, uninstallAccount) - call get-tracking for the live status.


Get a tracking

GET
https://api.load-market.com/v1
/get-tracking
x-api-key (header)
or
x-api-key (header)
+x-api-client-key (header)

Returns the current state of one tracking: status, latest driver position, stops with arrival/departure confirmations, Smart Arrival Alert status, driver files (BOL/POD), email settings and the Live Tracking Link (publicLink).

  • requestStopsEta=0|1 adds stopLocationsEta: the Traffic-based ETA (driving distance and duration from the driver's last position to the requested stops, with live traffic: Esri routing, and Mapbox driving-traffic when Esri does not answer). A stop whose ETA cannot be computed, or an index that does not exist, is left out.
  • requestDriverAddress=true adds the reverse-geocoded address to driverCoords.location.

Driver position. driverCoords is published only while the tracking is live: stored status active, stop, activeEld or stopEld (the derived notMoving, waiting and settings come from active). For request, cancel, done, the other ELD statuses, pending installation and scheduled tracking items it is null. Positions are stored per driver (or truck), so outside the live window the latest fix may belong to another load. For the same reason, on a mobile tracking it stays null after the driver accepts, until the phone sends its first position for this tracking.

Potential Fraud Alerts (PRO). fraudAlerts reports signals about the driver's phone (jailbroken device, emulator, VPN, IP address or GPS position outside the US and Canada) for organizations on a PRO or VIP plan, and for tracking items created on the organization's PRO trial, in the same live window as driverCoords. It is null otherwise, always for an ELD only tracking, and for a hybrid until the driver accepts it in the app. A signal is not proof of fraud - see the Potential Fraud Alerts guide.

When an optional enrichment cannot be computed the response is still 200 and message explains what is missing (for example Driver location address can not be provided, driver coordinates not available.).

Visibility. A tracking is visible to the partner key that created it, or to any partner key when the organization's client key is sent in x-api-client-key. This ownership rule is being rolled out and is enforced per partner - until enforcement it runs in shadow mode (the request is logged and allowed).

The driver app reports a position about every 20 seconds. An ELD position is read from the carrier's ELD provider about once a minute, and its lastUpdate is the time the ELD recorded it. Poll at most once per minute per tracking and prefer webhooks.

Get a tracking › query Parameters

trackingId
​string · required

The trackingId returned by create-tracking.

Example: api-7fK2mQ9xLpR4tN8vB1cD
requestStopsEta
​string · pattern: ^\d+(\|\d+)*$

Pipe-separated zero-based stop indexes to compute the Traffic-based ETA for, for example 0|1. An index that does not exist is left out of stopLocationsEta.

Example: 0|1
requestDriverAddress
​boolean

When true, the driver's current address is added as driverCoords.location.

Default: false
requestDriverDetails
​boolean

When true, driverDetails is added: the driver of the tracking item and the device that tracks it (name, phone, picture, app version and language, device). Every plan. Not in webhooks or the list.

Default: false
requestPhoneSettings
​boolean

When true, phoneSettings is added: the location settings of the phone that tracks the tracking item (permission, accuracy, power-save mode) - what the settings status is about, without the driver's personal data. Every plan. Not in webhooks or the list.

Default: false

Get a tracking › Responses

Tracking data.

message
​string · required

Ok, or an explanation when a requested enrichment (ETA, driver address, driver details, phone settings) could not be added.

Example: Ok
​required

List tracking items of your organization

GET
https://api.load-market.com/v1
/get-all-tracking-items
x-api-key (header)
+x-api-client-key (header)

Returns a slim list of the organization's tracking items. The organization comes from the mandatory x-api-client-key header. The list never crosses organizations.

  • type=active: every tracking item that is not finished (including rejected ones) plus pending installation and scheduled tracking items, newest first. No pagination, capped at 500 items per source (regular and pending).
  • type=history: finished tracking items (done or doneEld) whose expiration date (expDate) falls in the window fromDate < expDate <= toDate, ordered by expDate ascending, paginated with limit and cursor. Without fromDate the window starts 7 days ago.

History keeps finished tracking items for a limited time only, so sync what you need regularly. Stopping a tracking does not change its expDate, so a tracking stopped early lands in history by its original expDate.

Items are slim by design (no email settings, driver files, ETA or reverse-geocoded address) - call get-tracking for the full view. driverCoords is set only for live tracking items (stored status active, stop, activeEld or stopEld). History items always have driverCoords: null.

With a TEST key the list contains test tracking items only, and history returns a single page (nextCursor is always null).

List tracking items of your organization › query Parameters

type
​string · enum · required

active for the live list, history for finished tracking items.

Enum values:
active
history
fromDate
​integer · int64

History only. Window start in epoch milliseconds (UTC), exclusive, applied to expDate. Defaults to now minus 7 days.

Example: 1792972800000
toDate
​integer · int64

History only. Window end in epoch milliseconds (UTC), inclusive, applied to expDate. No upper bound when omitted.

Example: 1793577600000
limit
​integer · min: 1 · max: 500

History only. Page size.

Default: 100
cursor
​string

History only. Opaque cursor from the previous page's pagination.nextCursor. Send it with the same window.

List tracking items of your organization › Responses

Tracking items. pagination is present on history responses only.

message
​string · required
​TrackingItem[] · required

Present on history responses only.


Stop a tracking

PATCH
https://api.load-market.com/v1
/stop-tracking
x-api-key (header)
or
x-api-key (header)
+x-api-client-key (header)

Finishes a tracking: its status becomes done (doneEld for an ELD or Hybrid tracking), the driver's app and the truck's ELD stop sharing the location for it, and it moves to history. Works on tracking items that exist in the driver's app or were approved by the carrier (any status). A pending installation, a scheduled tracking that has not started, or an ELD only tracking still waiting for the carrier's approval is not found here - delete it instead.

For tracking items created through the API with webhooks enabled on the key, the final done (or doneEld) webhook is sent as well (see Webhooks).

Stopping does not change the tracking's expDate: a tracking stopped early lands in the history list by its original expDate.

Visibility. A tracking is visible to the partner key that created it, or to any partner key when the organization's client key is sent in x-api-client-key. This ownership rule is being rolled out and is enforced per partner - until enforcement it runs in shadow mode (the request is logged and allowed).

Stop a tracking › query Parameters

trackingId
​string · required

The trackingId returned by create-tracking.

Example: api-7fK2mQ9xLpR4tN8vB1cD

Stop a tracking › Responses

Tracking stopped.

message
​string · required

Delete a tracking

DELETE
https://api.load-market.com/v1
/delete-tracking
x-api-key (header)
or
x-api-key (header)
+x-api-client-key (header)

Permanently deletes a tracking with its driver files, chat and location reports. Works for every tracking, including pending installation and scheduled ones. Deletion is idempotent on partial failure: when you get a 500, retry the same call.

Deleting does not refund the tracking request already consumed from the plan.

Visibility. A tracking is visible to the partner key that created it, or to any partner key when the organization's client key is sent in x-api-client-key. This ownership rule is being rolled out and is enforced per partner - until enforcement it runs in shadow mode (the request is logged and allowed).

Delete a tracking › query Parameters

trackingId
​string · required

The trackingId returned by create-tracking.

Example: api-7fK2mQ9xLpR4tN8vB1cD

Delete a tracking › Responses

Tracking deleted.

message
​string · required