Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Railhook Webhook Capture API
description: 'Send webhooks to the endpoints your customers register, and receive webhooks from any provider, with every attempt on record.
## What you can do
- **Outgoing**: post an event once; Railhook delivers it, signed, to every subscribed endpoint and retries on its own (1m → 24h, 7 attempts). What never arrives lands in Failed Messages.
- **Incoming**: give each provider its own ingress URL; Railhook verifies the signature and forwards the event to your destinations.
- **Replay**: send past events again with Time Machine.
## Authentication
- **API key** (`X-API-Key` header): project-scoped calls, including sending events. What the SDKs use.
- **Bearer token**: account and organization calls made on behalf of a signed-in user.
- **Portal session** (`Authorization: Bearer rhp_…`): the `/api/v1/portal/**` calls the embedded customer portal makes for one Consumer. Opened by your backend with an API key.
Guides: /docs/'
contact:
name: Railhook
url: https://github.com/vadymkykalo/railhook
license:
name: MIT
url: https://opensource.org/licenses/MIT
version: 1.0.0
servers:
- url: '{baseUrl}'
description: Your Railhook installation — the same origin the dashboard runs on
variables:
baseUrl:
description: Scheme and host of your installation, without a trailing slash
default: http://localhost:8080
security:
- bearerAuth: []
tags:
- name: Webhook Capture
description: Public endpoints to receive and capture webhook requests
paths:
/hook/{slug}:
get:
tags:
- Webhook Capture
summary: Capture webhook request
description: Captures any HTTP request sent to this test endpoint
operationId: captureRequestGet
parameters:
- name: slug
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: string
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/WebhookCaptureResponse'
put:
tags:
- Webhook Capture
summary: Capture webhook request
description: Captures any HTTP request sent to this test endpoint
operationId: captureRequestPut
parameters:
- name: slug
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: string
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/WebhookCaptureResponse'
post:
tags:
- Webhook Capture
summary: Capture webhook request
description: Captures any HTTP request sent to this test endpoint
operationId: captureRequestPost
parameters:
- name: slug
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: string
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/WebhookCaptureResponse'
delete:
tags:
- Webhook Capture
summary: Capture webhook request
description: Captures any HTTP request sent to this test endpoint
operationId: captureRequestDelete
parameters:
- name: slug
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: string
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/WebhookCaptureResponse'
patch:
tags:
- Webhook Capture
summary: Capture webhook request
description: Captures any HTTP request sent to this test endpoint
operationId: captureRequestPatch
parameters:
- name: slug
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: string
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/WebhookCaptureResponse'
components:
schemas:
WebhookCaptureResponse:
type: object
properties:
success:
type: boolean
message:
type: string
requestId:
type: string
receivedAt:
type: string
error:
type: string
challenge:
type: string
securitySchemes:
bearerAuth:
type: http
description: JWT token obtained from /api/v1/auth/login
scheme: bearer
bearerFormat: JWT
apiKey:
type: apiKey
description: Project API key for event ingestion
name: X-API-Key
in: header
platformAdminToken:
type: apiKey
description: Cluster-operator credential (PLATFORM_ADMIN_TOKEN env var), independent of tenant org membership — required for cross-tenant admin endpoints
name: X-Platform-Admin-Token
in: header
portalSession:
type: http
description: Portal session token, returned once by POST /api/v1/projects/{projectId}/consumers/{consumerId}/portal-sessions
scheme: bearer
bearerFormat: rhp_…