Event Overview
The Train Arrival webhook fires when a train arrives at a station in your network. It delivers equipment details, the arrival station, loaded/empty status, the train number, and the associated work order (if any).This webhook is triggered through ARMS workflow automation. Configure it in your workflow rules to notify external
systems when trains arrive at specific locations.
Payload Schema
Field Reference
Top-level Fields
| Field | Type | Required | Description |
|---|---|---|---|
event_type | string | Yes | Always "TrainArrival" for this event. |
event_timestamp | string (ISO 8601) | No | When the train arrived. null if unavailable. |
work_order_id | string | No | ID of the associated work order. null if the event has no work order. |
linked_resources | object | Yes | Equipment and station involved in the event. |
attributes | object | Yes | Event-specific attributes. |
linked_resources.equipment
An array of equipment items on the arriving train. Always an array, even for a single car.| Field | Type | Description |
|---|---|---|
resource_id | integer | Internal equipment identifier. |
car_number | string or null | Railroad car number (e.g. "TTGX 995823"). |
linked_resources.event_station
The station where the train arrived.null if no station is associated.
| Field | Type | Description |
|---|---|---|
resource_id | integer | Internal station identifier. |
grouping_type | string | Type of location (e.g. "station", "track"). |
attributes
| Field | Type | Description |
|---|---|---|
is_loaded | boolean | true if the cars are loaded, false if empty. |
train_number | string or null | Train identifier (e.g. "T-4521"). null if no train ID is set. |
Example HTTP Request
This is the full HTTP request your endpoint receives:The JSON body is canonically serialized (sorted keys, no extra whitespace) so the signature can be verified
deterministically. See the Webhook Overview for verification
instructions.
Differences from Car Actually Placed
| Aspect | Car Actually Placed | Train Arrival |
|---|---|---|
event_type | "car_actually_placed" | "TrainArrival" |
train_number | Not included | Included in attributes |
| Equipment scope | Single car typically | Multiple cars on the train |
| Trigger | Car physically placed at a track | Train arrives at a station |
Setting Up This Webhook
Add Webhook Effect
Add the Train Arrival Webhook effect to the workflow. Provide your endpoint URL and authorization token.
Implement Your Endpoint
Build an HTTPS endpoint that receives the POST, verifies the signature, and processes the event.
Related
Webhook Overview
Signing, verification, public key, and shared HTTP headers.
Car Actually Placed
Webhook for individual car placement events.