Infrastructure
Railway Webhooks
Cloud deployment platform. Receive events for deployments, service status, and project updates.
Connecting Railway to Hookbase
Create a source in Hookbase first — it gives you an ingest URL to paste into Railway. Then:
- 1In Railway, open your project and click Settings (top right)
- 2Open the Webhooks tab
- 3Enter your Hookbase ingest URL
- 4Add a custom header named Authorization with the value "Bearer <token>", using the token Hookbase generated for this source
- 5Click "Save Webhook"
Signature verification
Set the source's provider to railway and paste the signing secret. Every request is checked before the event is stored, and anything that fails is rejected rather than quietly recorded.
- Algorithm
- Shared secret echoed as "Authorization: Bearer <token>" (not HMAC-signed)
- Header
- Authorization
- Where to find the secret
- Railway → your project → Settings → Webhooks → your webhook → custom headers. Add a header named Authorization with the value "Bearer <token>". Railway doesn't sign payloads, so this header is what Hookbase checks.
Railway event types
2 of the events people route most often. Hookbase accepts every event Railway sends, whether or not it is listed here.
Deployment.failed
A build or deploy failed
Deployment.crashed
A running deployment exited unexpectedly
What a Railway webhook looks like
A Deployment.failed payload. Hookbase stores the raw body exactly as it arrived, so this is also what you get back on a replay.
{
"type": "Deployment.failed",
"details": {
"id": "8107edff-4b8e-44fc-b43a-04566e847a2a",
"source": "GitHub",
"branch": "main",
"commitHash": "abc123def456",
"commitAuthor": "octocat",
"commitMessage": "fix: handle null response"
},
"resource": {
"workspace": {
"id": "3f1c2a9e-6d4b-4e8a-9b7c-1a2b3c4d5e6f",
"name": "Acme"
},
"project": {
"id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d",
"name": "my-project"
},
"environment": {
"id": "9c8b7a6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"name": "production",
"isEphemeral": false
},
"service": {
"id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"name": "api"
},
"deployment": {
"id": "7d6c5b4a-3e2f-4a1b-9c8d-7e6f5a4b3c2d"
}
},
"severity": "WARNING",
"timestamp": "2025-11-21T23:48:42.311Z"
}Start receiving Railway webhooks
Create a source, paste the URL into Railway, and watch the first event arrive. The free tier includes 1,000 events a month.
Get Started Free