Webhooks
Webhooks allow you to receive real-time notifications when events occur in your PrimeFreight account. Instead of polling the API for updates, webhooks will send HTTP POST requests to your specified URL when events happen.Webhook Events
PrimeFreight sends webhook notifications for a comprehensive range of events including:Container Transport Events
- container.transport.vessel_arrived - Vessel arrives at port
- container.transport.vessel_discharged - Container discharged from vessel
- container.transport.vessel_loaded - Container loaded onto vessel
- container.transport.vessel_departed - Vessel departs from port
- container.transport.vessel_berthed - Vessel berthed at terminal
- container.transport.rail_departed - Container departs by rail
- container.transport.rail_arrived - Container arrives by rail
- container.transport.rail_loaded - Container loaded onto rail
- container.transport.rail_unloaded - Container unloaded from rail
- container.transport.transshipment_arrived - Container arrives at transshipment port
- container.transport.transshipment_discharged - Container discharged at transshipment
- container.transport.transshipment_loaded - Container loaded at transshipment
- container.transport.transshipment_departed - Container departs transshipment
- container.transport.feeder_arrived - Feeder vessel arrives
- container.transport.feeder_discharged - Container discharged from feeder
- container.transport.feeder_loaded - Container loaded onto feeder
- container.transport.feeder_departed - Feeder vessel departs
- container.transport.empty_out - Container emptied out
- container.transport.full_in - Container filled in
- container.transport.full_out - Container filled out
- container.transport.empty_in - Container emptied in
- container.transport.arrived_at_inland_destination - Container arrived at inland destination
- container.transport.estimated.arrived_at_inland_destination - Estimated arrival at inland destination
- container.transport.available - Container available for pickup
Container Events
- container.created - New container created
- container.updated - Container information updated
- container.pod_terminal_changed - Port of discharge terminal changed
- container.pickup_lfd.changed - Pickup last free day changed
Shipment Events
- shipment.estimated.arrival - Shipment arrival time updated
Tracking Request Events
- tracking_request.succeeded - Tracking request successfully created
- tracking_request.failed - Tracking request failed
- tracking_request.awaiting_manifest - Tracking request waiting for manifest
- tracking_request.tracking_stopped - Tracking request stopped
Webhook Payload Structure
All webhook payloads follow a consistent JSON:API structure with included related resources. Here’s an example of the type of notification you would receive:Webhook notifications are only sent if you have at least one active webhook configured in your account.
