Set up webhooks

Get notified about load updates in real-time.

Webhooks tell you when something changes. They're optional, but recommended. Not every integration needs every event. See the Webhooks overview for the full list of events.

  1. Build an HTTPS endpoint that accepts POST requests with a JSON body.
  2. Register a URL for each event type you want with POST /webhookUrls, sending {"eventType": "...", "url": "https://..."}. Use GET /webhookUrls to list your URLs and DELETE /webhookUrls to remove one.
  3. The event types are LOAD, STOPS, LOAD_BOOKING_STATUS, LOAD_QUOTE, LOAD_ETA_STATUS, VEHICLE_TRACKING and LOAD_AND_POD_DOCUMENTS.
  4. For LOAD and STOPS events, set callbackRequired: true on the load. Other events don't need it.
  5. Webhook requests include your API key in the X-API-KEY header, so you can check that they come from TEG.
  6. Respond quickly with any 2xx status (200 recommended). Failed deliveries are retried up to 3 times, about every 5 minutes. The connection timeout is 500 ms and the response timeout is 30 seconds.
  7. Delivery is at-least-once and order isn't guaranteed, so make sure your endpoint can handle duplicate events.

Next: Load lifecycle.


Did this page help you?