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
Payload Built
Cedar constructs a JSON payload with event details, equipment information, and timestamps.
Configuration
Each webhook effect requires two inputs when you set up the workflow in ARMS:| Input | Description |
|---|---|
| Webhook URL | The HTTPS endpoint where Cedar sends the POST request. |
| Authorization | A bearer token or other credential sent in the Authorization header. |
HTTP Headers
Every webhook request includes these headers:| Header | Description | Example |
|---|---|---|
Content-Type | Always application/json | application/json |
Authorization | Your configured authorization value | Bearer eyJhbGci... |
X-Webhook-Timestamp | Unix epoch (seconds) when the request was sent | 1709651400 |
X-Webhook-Signature | Base64-encoded Ed25519 signature | a3F0eGp... |
X-Webhook-KeyId | Identifier for the signing key used | cedar-webhooks-2026 |
X-Webhook-Id | UUID v4 for deduplication | 550e8400-e29b-41d4-... |
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 and the request body:- TIMESTAMP is the value of the
X-Webhook-Timestampheader (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.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.