Railhook Incoming Events API
Incoming webhook events monitoring
Incoming webhook events monitoring
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/railhook-io:railhook-io-incoming-events-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Railhook Incoming Events 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: Incoming Events
description: Incoming webhook events monitoring
paths:
/api/v1/projects/{projectId}/incoming-events/{id}/replay:
post:
tags:
- Incoming Events
summary: Replay incoming event
description: Re-sends the incoming event to all enabled destinations
operationId: replayEvent
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Event replayed
content:
'*/*':
schema:
$ref: '#/components/schemas/ReplayEventResponse'
'404':
description: Event not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
- apiKey: []
/api/v1/projects/{projectId}/incoming-events/bulk-replay:
post:
tags:
- Incoming Events
summary: Bulk replay incoming events
description: Re-sends multiple incoming events to all enabled destinations. Filter by source, time range, or explicit event IDs.
operationId: bulkReplay
parameters:
- name: projectId
in: path
required: true
schema:
type: string
format: uuid
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/IncomingBulkReplayRequest'
required: true
responses:
'200':
description: Bulk replay completed
content:
'*/*':
schema:
$ref: '#/components/schemas/IncomingBulkReplayResponse'
'404':
description: Source not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
- apiKey: []
/api/v1/projects/{projectId}/incoming-events:
get:
tags:
- Incoming Events
summary: List incoming events
description: Returns paginated incoming events for the project
operationId: listIncomingEvents
parameters:
- name: projectId
in: path
required: true
schema:
type: string
format: uuid
- name: sourceId
in: query
description: Filter by incoming source ID
required: false
schema:
type: string
format: uuid
- name: page
in: query
description: Zero-based page index (0..N)
required: false
schema:
type: integer
default: 0
minimum: 0
- name: size
in: query
description: The size of the page to be returned
required: false
schema:
type: integer
default: 20
minimum: 1
- name: sort
in: query
description: 'Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.'
required: false
schema:
type: array
default:
- receivedAt,ASC
items:
type: string
responses:
'200':
description: Events retrieved
content:
'*/*':
schema:
$ref: '#/components/schemas/PageIncomingEventResponse'
security:
- bearerAuth: []
- apiKey: []
/api/v1/projects/{projectId}/incoming-events/{id}:
get:
tags:
- Incoming Events
summary: Get incoming event
description: Returns incoming event details by ID
operationId: getIncomingEvent
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Event retrieved
content:
'*/*':
schema:
$ref: '#/components/schemas/IncomingEventResponse'
'404':
description: Event not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
- apiKey: []
/api/v1/projects/{projectId}/incoming-events/{id}/attempts:
get:
tags:
- Incoming Events
summary: Get event forward attempts
description: Returns forwarding attempts for an incoming event
operationId: getEventAttempts
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
- name: page
in: query
description: Zero-based page index (0..N)
required: false
schema:
type: integer
default: 0
minimum: 0
- name: size
in: query
description: The size of the page to be returned
required: false
schema:
type: integer
default: 20
minimum: 1
- name: sort
in: query
description: 'Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.'
required: false
schema:
type: array
items:
type: string
responses:
'200':
description: Attempts retrieved
content:
'*/*':
schema:
$ref: '#/components/schemas/PageIncomingForwardAttemptResponse'
'404':
description: Event not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
- apiKey: []
components:
schemas:
SortObject:
type: object
properties:
empty:
type: boolean
sorted:
type: boolean
unsorted:
type: boolean
PageableObject:
type: object
properties:
offset:
type: integer
format: int64
paged:
type: boolean
pageNumber:
type: integer
format: int32
pageSize:
type: integer
format: int32
sort:
$ref: '#/components/schemas/SortObject'
unpaged:
type: boolean
IncomingBulkReplayResponse:
type: object
description: Response for bulk replay of incoming events
properties:
status:
type: string
description: Operation status
example: bulk_replayed
sourceId:
type: string
format: uuid
description: Source ID the events belong to
eventsReplayed:
type: integer
format: int32
description: Number of events replayed
totalForwardAttempts:
type: integer
format: int32
description: Total forward attempts created across all events
IncomingBulkReplayRequest:
type: object
description: Request for bulk replay of incoming events
properties:
sourceId:
type: string
format: uuid
description: Filter by source ID (required)
example: 550e8400-e29b-41d4-a716-446655440000
from:
type: string
format: date-time
description: 'Filter: only events received after this timestamp (inclusive)'
to:
type: string
format: date-time
description: 'Filter: only events received before this timestamp (exclusive)'
verified:
type: boolean
description: Filter by verification status (null = all)
eventIds:
type: array
description: Explicit list of event IDs to replay (overrides time range filters)
items:
type: string
format: uuid
maxEvents:
type: integer
format: int32
description: Maximum number of events to replay (safety limit)
example: 1000
required:
- sourceId
PageIncomingForwardAttemptResponse:
type: object
properties:
totalPages:
type: integer
format: int32
totalElements:
type: integer
format: int64
size:
type: integer
format: int32
content:
type: array
items:
$ref: '#/components/schemas/IncomingForwardAttemptResponse'
number:
type: integer
format: int32
sort:
$ref: '#/components/schemas/SortObject'
pageable:
$ref: '#/components/schemas/PageableObject'
numberOfElements:
type: integer
format: int32
first:
type: boolean
last:
type: boolean
empty:
type: boolean
IncomingEventResponse:
type: object
properties:
id:
type: string
format: uuid
incomingSourceId:
type: string
format: uuid
sourceName:
type: string
requestId:
type: string
method:
type: string
path:
type: string
queryParams:
type: string
headersJson:
type: string
bodyRaw:
type: string
bodySha256:
type: string
contentType:
type: string
clientIp:
type: string
userAgent:
type: string
verified:
type: boolean
verificationError:
type: string
receivedAt:
type: string
format: date-time
ReplayEventResponse:
type: object
description: Response after replaying an incoming event
properties:
status:
type: string
description: Replay status
example: replayed
eventId:
type: string
format: uuid
description: ID of the replayed event
destinationsCount:
type: integer
format: int32
description: Number of destinations the event was forwarded to
example: 3
ErrorResponse:
type: object
properties:
error:
type: string
message:
type: string
status:
type: integer
format: int32
fieldErrors:
type: object
additionalProperties:
type: string
IncomingForwardAttemptResponse:
type: object
properties:
id:
type: string
format: uuid
incomingEventId:
type: string
format: uuid
destinationId:
type: string
format: uuid
destinationUrl:
type: string
attemptNumber:
type: integer
format: int32
status:
type: string
enum:
- PENDING
- PROCESSING
- SUCCESS
- FAILED
- DLQ
- CANCELLED
startedAt:
type: string
format: date-time
finishedAt:
type: string
format: date-time
requestHeadersJson:
type: string
requestBodySnippet:
type: string
responseCode:
type: integer
format: int32
responseHeadersJson:
type: string
responseBodySnippet:
type: string
errorMessage:
type: string
nextRetryAt:
type: string
format: date-time
createdAt:
type: string
format: date-time
PageIncomingEventResponse:
type: object
properties:
totalPages:
type: integer
format: int32
totalElements:
type: integer
format: int64
size:
type: integer
format: int32
content:
type: array
items:
$ref: '#/components/schemas/IncomingEventResponse'
number:
type: integer
format: int32
sort:
$ref: '#/components/schemas/SortObject'
pageable:
$ref: '#/components/schemas/PageableObject'
numberOfElements:
type: integer
format: int32
first:
type: boolean
last:
type: boolean
empty:
type: boolean
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_…