Railhook Event Time Machine API

Replay events by time range and filters

GitHub OpenAPI

Operations 5

GET /api/v1/projects/{projectId}/replay List replay sessions #
POST /api/v1/projects/{projectId}/replay Create replay session #
POST /api/v1/projects/{projectId}/replay/{sessionId}/cancel Cancel replay session #
POST /api/v1/projects/{projectId}/replay/estimate Estimate replay #
GET /api/v1/projects/{projectId}/replay/{sessionId} Get replay session #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/railhook-io:railhook-io-event-time-machine-api"
All apis
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.

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

railhook-io-event-time-machine-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Railhook Event Time Machine 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: Event Time Machine
  description: Replay events by time range and filters
paths:
  /api/v1/projects/{projectId}/replay:
    get:
      tags:
      - Event Time Machine
      summary: List replay sessions
      description: Returns paginated history of replay sessions for the project
      operationId: listReplaySessions
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: page
        in: query
        required: false
        schema:
          type: integer
          format: int32
          default: 0
      - name: size
        in: query
        required: false
        schema:
          type: integer
          format: int32
          default: 20
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/PageReplaySessionResponse'
      security:
      - bearerAuth: []
      - apiKey: []
    post:
      tags:
      - Event Time Machine
      summary: Create replay session
      description: Start async replay of events matching the criteria
      operationId: createReplaySession
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReplayRequest'
        required: true
      responses:
        '201':
          description: Replay session created and processing started
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ReplaySessionResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/replay/{sessionId}/cancel:
    post:
      tags:
      - Event Time Machine
      summary: Cancel replay session
      description: Requests cancellation of a running replay session
      operationId: cancel
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: sessionId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ReplaySessionResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/replay/estimate:
    post:
      tags:
      - Event Time Machine
      summary: Estimate replay
      description: 'Dry-run: count matching events and estimate deliveries without executing'
      operationId: estimate
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReplayRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ReplayEstimateResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/replay/{sessionId}:
    get:
      tags:
      - Event Time Machine
      summary: Get replay session
      description: Returns current status and progress of a replay session
      operationId: getReplaySession
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: sessionId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ReplaySessionResponse'
      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
    ReplaySessionResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        projectId:
          type: string
          format: uuid
        createdBy:
          type: string
          format: uuid
        status:
          type: string
          enum:
          - PENDING
          - ESTIMATING
          - RUNNING
          - COMPLETED
          - FAILED
          - CANCELLED
          - CANCELLING
        fromDate:
          type: string
          format: date-time
        toDate:
          type: string
          format: date-time
        eventType:
          type: string
        endpointId:
          type: string
          format: uuid
        sourceStatus:
          type: string
          enum:
          - PENDING
          - PROCESSING
          - SUCCESS
          - FAILED
          - DLQ
          - CANCELLED
        totalEvents:
          type: integer
          format: int32
        processedEvents:
          type: integer
          format: int32
        deliveriesCreated:
          type: integer
          format: int32
        errors:
          type: integer
          format: int32
        progressPercent:
          type: number
          format: double
        errorMessage:
          type: string
        startedAt:
          type: string
          format: date-time
        completedAt:
          type: string
          format: date-time
        cancelledAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
        durationMs:
          type: integer
          format: int64
    ReplayRequest:
      type: object
      properties:
        fromDate:
          type: string
          format: date-time
        toDate:
          type: string
          format: date-time
        eventType:
          type: string
        endpointId:
          type: string
          format: uuid
        sourceStatus:
          type: string
          enum:
          - PENDING
          - PROCESSING
          - SUCCESS
          - FAILED
          - DLQ
          - CANCELLED
      required:
      - fromDate
      - toDate
    PageReplaySessionResponse:
      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/ReplaySessionResponse'
        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
    ReplayEstimateResponse:
      type: object
      properties:
        totalEvents:
          type: integer
          format: int64
        estimatedDeliveries:
          type: integer
          format: int64
        activeSubscriptions:
          type: integer
          format: int32
        warning:
          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_…