Webhooks
Instead of polling GET /get-tracking, Load Market can push tracking updates to an HTTPS endpoint of
yours.
Enabling webhooks
Webhooks are configured per partner key by Load Market. Email office@load-market.com with:
- the HTTPS URL of your endpoint (one for the live key, optionally another for the test key),
- optionally a bearer token we should send in the
Authorizationheader.
We reply with the signing secret (whsec_...) for each key. Store it like a password.
When updates are sent
Once per minute the server collects every tracking created with your partner key (after webhooks were enabled on it) that changed during the last minute:
- the driver (or the truck's ELD) reported a new position,
- the status changed (accepted, rejected, paused, resumed, finished, device issues, ...),
- the driver uploaded a file (then
driverFilesis included), - something happened that has an event (the truck arrived at a stop, a Smart Arrival Alert
turned
late, the carrier approved, ...).
All of them are sent in one POST - the body is a JSON array with one item per tracking.
Nothing is sent for a minute in which nothing changed.
A tracking sends updates from its create. Until it reaches the driver's app (a pending installation, a
scheduled tracking, an ELD or Hybrid request waiting for the carrier) it sends only
items with events, such as carrier.rejected or driver.sms_undeliverable, and their data is the pending
shape (TrackingPendingData). Once it starts (driver.installed, tracking.started or carrier.approved)
every change is sent. It stops after its final done or cancel update (doneEld or cancelEld for
ELD and Hybrid), when the driver of a phone tracking uninstalls the app or deletes the account, or when
you delete the tracking. Your own PATCH /stop-tracking also produces the final done (or doneEld)
update. A request that is removed without starting (it expired or was deleted) sends nothing more.
Request
Code
Each item's data has the same shape as the data of GET /get-tracking (TrackingData in the
API reference), shortened above, with these differences:
stopLocationsEtaanddriverCoords.locationare never included (they exist only on request).driverFilesis included only when the driver uploaded a file.driverCoordsisnulloutside the live window, and on a mobile tracking until the phone sends its first position after the driver accepts - see Tracking lifecycle. A position from the truck's ELD hasbattery,accuracyandlocationSourcenull- see ELD and Hybrid tracking.fraudAlertsfollows the same live window. A change in it alone does not send an update, the current value arrives with the next one - see Potential Fraud Alerts.
Events
Each item's events lists what happened to the tracking since the last delivery, oldest first. It is empty
when only the snapshot changed (a new position). The snapshot in data is the state at the time of the
delivery, so it can be newer than the last event.
type | When | Extra fields |
|---|---|---|
driver.installed | A pending installation is now in the driver's app | status, previousStatus |
driver.accepted | The driver accepted the tracking | status, previousStatus |
driver.rejected | The driver declined it (a Hybrid: the phone side) | status, previousStatus |
driver.paused | The driver paused sharing | status, previousStatus |
driver.resumed | The driver resumed sharing | status, previousStatus |
driver.sms_undeliverable | The driver's number can never receive a text | reason |
driver.sms_opted_out | The driver's number replied STOP | |
tracking.started | A scheduled tracking started | status, previousStatus |
tracking.finished | The tracking finished (done or doneEld) | status, previousStatus |
carrier.approved | The carrier approved the ELD side | status |
carrier.rejected | The carrier refused or cancelled the ELD side (status cancelEld ends the tracking, a Hybrid keeps its status) | status |
carrier.paused | The carrier paused the ELD side | status |
carrier.resumed | The carrier resumed the ELD side | status |
stop.arrived | The truck arrived at a stop | stopIndex, customStopId |
stop.departed | The truck left a stop | stopIndex, customStopId |
stop.arrival_cleared | A user marked a confirmed arrival as not arrived - undo the arrival you recorded | stopIndex, customStopId |
stop.departure_cleared | A user marked a confirmed departure as not completed | stopIndex, customStopId |
stop.alert_status_changed | A stop's Smart Arrival Alert changed (PRO) | stopIndex, customStopId, stopAlertStatus, previousStopAlertStatus |
document.uploaded | The driver uploaded a file (it is in data.driverFiles) | fileId, fileType |
Every event has an id, a type and at (epoch milliseconds, when it happened). New types may be added over
time, ignore a type you do not know. An event can arrive more than once - deduplicate by its id.
When the driver cannot receive a text (driver.sms_undeliverable, driver.sms_opted_out), data.driverInvite
says why and carries the driver app link (appLink) to share with the driver another way.
Headers
| Header | Value |
|---|---|
webhook-id | Unique message id, msg_<uuid>. Identical on every retry of the same delivery - use it to deduplicate. |
webhook-timestamp | Unix time in seconds when the message was signed. |
webhook-signature | v1,<base64 signature>. It can hold several space-separated entries. |
Authorization | Bearer <your token>, only when a token is configured for your key. |
Responding and retries
- Answer with any 2xx within 7 seconds. Do the real work asynchronously (queue the payload, respond, then process).
- A timeout, a network error,
408,429or any5xxis retried up to 2 more times with a short exponential backoff. ARetry-After(seconds) is honored, capped at 5 seconds. - Any other
4xx(for example400or401) is not retried. - When every attempt failed, the tracking's events are sent again with its next item, for up to an
hour (at most the newest 50 per tracking). The snapshot itself is not redelivered: the next change
produces a new update, and you can always read the current state with
GET /get-tracking.
Delivery is best effort and an update can arrive more than once: dedupe deliveries on webhook-id and
events on their id, apply updates idempotently per trackingId (ignore an item whose
driverCoords.lastUpdate is older than what you already stored), and fall back to GET /get-tracking for gaps.
Verifying the signature
Signatures follow the Standard Webhooks specification, so any Standard Webhooks library works. To verify by hand:
- Take the part of your secret after
whsec_and base64-decode it - that is the HMAC key. - Build the signed content:
`${webhook-id}.${webhook-timestamp}.${raw body}`. Use the raw request body bytes exactly as received - not a re-serialized JSON object. - Compute HMAC-SHA256 of it with the key and base64-encode the result.
- Split
webhook-signatureon spaces. Accept the message when anyv1,<signature>entry matches, using a constant-time comparison. - Reject the message when
webhook-timestampis more than 5 minutes away from your clock (replay protection).
Test vector
Check your verifier against this official Standard Webhooks vector before going live. With the 5-minute timestamp check turned off (the timestamp is from 2021), it must accept the message, and it must reject it when a single byte of the body changes.
| Input | Value |
|---|---|
| Secret | whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw |
webhook-id | msg_p5jXN8AQM9LWM0D4loKWxJek |
webhook-timestamp | 1614265330 |
| Raw body | {"test": 2432232314} |
Expected webhook-signature | v1,g0hM9SsE+OTPJTGt/tmIKtSyZlE3uFJELVlNIOLJ1OE= |
Keys issued before signing was introduced
Partner keys that existed before webhook signing receive their signing secret from Load Market separately. Until you have it, deliveries to those keys are not signed and carry only the bearer token. Once you have the secret, start verifying and reject unsigned requests.
Testing your endpoint
With a test key, every POST /test/simulate call sends one signed webhook with the new state to the
URL configured on the test key - once, no retries, 7-second timeout - and returns what your endpoint
answered in the webhook object. The item carries the event the simulate stands for in events
(driver.accepted, carrier.rejected, ...). This happens only when webhooks are enabled on the test key.
Otherwise webhook.attempted is false. See Test mode.
Checklist
- Verify the signature on the raw body and check the timestamp.
- Respond with 2xx within 7 seconds. Process asynchronously.
- Deduplicate deliveries on
webhook-idand events on theirid. Apply updates pertrackingIdidempotently. - Handle an array with many items, and statuses or fields you do not know yet.
- Fall back to
GET /get-trackingif you suspect you missed an update.

