Overview
Cedar’s workflow automation can send real-time event notifications to your systems via webhooks. When a configured event occurs (such as a car being placed at a station), Cedar POSTs a signed JSON payload to your endpoint.Webhooks let you integrate Cedar events into your own systems — ERP platforms, notification services, or any HTTP
endpoint that can receive JSON.
How It Works
1
Event Triggers
A workflow event fires in ARMS (e.g. car placed at a station).
2
Payload Built
Cedar constructs a JSON payload with event details, equipment information, and timestamps.
3
Signed & Sent
The payload is signed with Ed25519 and POSTed to your configured webhook URL over HTTP/2 (with automatic fallback to HTTP/1.1).
4
You Verify
Your endpoint verifies the signature using Cedar’s public key, then processes the event.
Configuration
Each webhook effect requires one input when you set up the workflow in ARMS:HTTP Headers
Every webhook request includes these headers:Signature Verification
Cedar signs every webhook payload with Ed25519 so you can verify that requests genuinely came from Cedar and haven’t been tampered with.Public Key
Use this public key to verify webhook signatures:How Signing Works
The signature covers a combination of the timestamp, key ID, and the request body:- TIMESTAMP is the value of the
X-Webhook-Timestampheader (string) - KEY_ID is the value of the
X-Webhook-KeyIdheader (string) - CANONICAL_JSON_BODY is the raw request body bytes (JSON with sorted keys and no extra whitespace)
signing_input, base64-encoded in the X-Webhook-Signature header.
Security Best Practices
Verify every request
Verify every request
Always verify the
X-Webhook-Signature before processing the payload. This confirms the request came from Cedar and hasn’t been modified in transit.Check timestamps for replay protection
Check timestamps for replay protection
Compare
X-Webhook-Timestamp against the current time. Reject requests older than 5 minutes to prevent replay
attacks.Use X-Webhook-Id for deduplication
Use X-Webhook-Id for deduplication
Network retries can cause duplicate deliveries. Store processed
X-Webhook-Id values and skip duplicates.Respond quickly
Respond quickly
Return a
2xx response within 30 seconds. If processing takes longer, acknowledge the request immediately and process asynchronously.Shared Payload Fields
Every webhook payload includes the following top-level fields in addition to the event-specific ones documented on each webhook’s page.actor
Identifies the user or system actor that caused the event to fire. Useful for auditing, attribution, and downstream filtering.
Known
resource_type values:
actor is null for cron-scheduled workflows or other system-initiated events that have no identifiable actor. The actor key is always present in the payload, so your integration can rely on it being set (possibly to null).Retry Behavior
Cedar automatically retries webhook deliveries when transient failures occur. Retries happen in two phases: inline retries during the initial delivery, and deferred retries scheduled over the next 24 hours.Inline retries
Inline retries use exponential backoff (1—10 seconds between attempts). The first attempt uses a 30-second timeout; retries use a shorter 5-second timeout. If HTTP/2 negotiation fails with a protocol error, Cedar automatically downgrades to HTTP/1.1 on the next attempt.
Deferred retries
If all inline attempts fail, Cedar schedules deferred retries on an hourly cadence:- Retried once per hour for up to 24 hours or 8 attempts, whichever comes first.
- Each deferred attempt is re-signed with a fresh
X-Webhook-Timestamp(because receivers reject stale signatures) but keeps the sameX-Webhook-Idso your endpoint can deduplicate. - After the retry window closes, the delivery is marked abandoned and no further attempts are made.
The same
X-Webhook-Id is sent on every inline and deferred retry attempt. Store processed IDs on your side to deduplicate safely.Available Webhook Effects
Car Actually Placed
Fires when a car is placed at a station or track. Includes equipment details, station, and loaded/empty status.
Train Arrival
Fires when a train arrives at a station. Includes equipment list, station, loaded/empty status, and train number.
Train Set
Fires when a train consist is defined. Includes wagon list, departure/arrival stations with names, and train ID.
Train Departure
Fires when a train departs from a station or customer location. Includes equipment list, station, customer/serving location, loaded/empty status, and train number.