---
title: "Backfill Railway Webhooks"
method: POST
path: "/api/settings/railway-webhooks"
tags: ["settings"]
---

# Backfill Railway Webhooks

`POST /api/settings/railway-webhooks`

## Request

- Base URL: `https://softkiln.com` (the document declares no server; this is the origin it was published from)
- URL: `https://softkiln.com/api/settings/railway-webhooks`
- Auth: none declared

Register ready apps' webhooks, up to `limit` per call.

Default: only apps with no webhook yet — call again for the next batch.

`include_registered=true` is the repair after RAILWAY_WEBHOOK_SECRET or
APP_MANAGER_PUBLIC_URL changes. Every existing registration then points at
a URL that 404s, and nothing else re-registers an app that already has a
webhook id. It walks every ready app, replacing stale registrations and
adopting current ones; page through with `offset`.

Sequential and capped, because it runs inside a request: ~3 Railway calls
per app, and a whole fleet in one call would outlast the proxy's timeout.

## Query parameters

- `limit` integer
- `include_registered` boolean
- `offset` integer

## Response `200`

Successful Response

- WebhookResult[]
  - `app` string, required
  - `result` string, required
  - `leftover` string[]
  - `detail` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/softkiln/apis/app-manager-api.md) · [All operations](https://skmtc.dev/softkiln/apis/app-manager-api/llms.txt) · [OpenAPI document](https://skmtc.dev/softkiln/apis/app-manager-api/revisions/de2b674a7f21?raw)
