Railhook Schema Registry API

Event type catalog and schema versioning

GitHub OpenAPI

Operations 12

GET /api/v1/projects/{projectId}/schemas/{eventTypeId} Get event type #
PUT /api/v1/projects/{projectId}/schemas/{eventTypeId} Update event type #
DELETE /api/v1/projects/{projectId}/schemas/{eventTypeId} Delete event type #
GET /api/v1/projects/{projectId}/schemas List event types #
POST /api/v1/projects/{projectId}/schemas Create event type #
GET /api/v1/projects/{projectId}/schemas/{eventTypeId}/versions List schema versions #
POST /api/v1/projects/{projectId}/schemas/{eventTypeId}/versions Create schema version #
POST /api/v1/projects/{projectId}/schemas/{eventTypeId}/versions/{versionId}/promote Promote schema to ACTIVE #
POST /api/v1/projects/{projectId}/schemas/{eventTypeId}/versions/{versionId}/deprecate Deprecate schema version #
GET /api/v1/projects/{projectId}/schemas/{eventTypeId}/versions/{versionId} Get schema version #
GET /api/v1/projects/{projectId}/schemas/{eventTypeId}/changes List schema changes for event type #
GET /api/v1/projects/{projectId}/schemas/changes List all schema changes #

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-schema-registry-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-schema-registry-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Railhook Schema Registry 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: Schema Registry
  description: Event type catalog and schema versioning
paths:
  /api/v1/projects/{projectId}/schemas/{eventTypeId}:
    get:
      tags:
      - Schema Registry
      summary: Get event type
      description: Returns event type details
      operationId: getEventType
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: eventTypeId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EventTypeCatalogResponse'
      security:
      - bearerAuth: []
      - apiKey: []
    put:
      tags:
      - Schema Registry
      summary: Update event type
      description: Updates event type description
      operationId: updateEventType
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: eventTypeId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventTypeCatalogRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EventTypeCatalogResponse'
      security:
      - bearerAuth: []
      - apiKey: []
    delete:
      tags:
      - Schema Registry
      summary: Delete event type
      description: Deletes event type and all its schema versions
      operationId: deleteEventType
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: eventTypeId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: Event type deleted
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/schemas:
    get:
      tags:
      - Schema Registry
      summary: List event types
      description: Returns all registered event types for the project
      operationId: listEventTypes
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/EventTypeCatalogResponse'
      security:
      - bearerAuth: []
      - apiKey: []
    post:
      tags:
      - Schema Registry
      summary: Create event type
      description: Registers a new event type in the catalog
      operationId: createEventType
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventTypeCatalogRequest'
        required: true
      responses:
        '201':
          description: Event type created
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EventTypeCatalogResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/schemas/{eventTypeId}/versions:
    get:
      tags:
      - Schema Registry
      summary: List schema versions
      description: Returns all schema versions for an event type
      operationId: listVersions
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: eventTypeId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/EventSchemaVersionResponse'
      security:
      - bearerAuth: []
      - apiKey: []
    post:
      tags:
      - Schema Registry
      summary: Create schema version
      description: Uploads a new JSON Schema version (created as DRAFT)
      operationId: createVersion
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: eventTypeId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventSchemaVersionRequest'
        required: true
      responses:
        '201':
          description: Schema version created
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EventSchemaVersionResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/schemas/{eventTypeId}/versions/{versionId}/promote:
    post:
      tags:
      - Schema Registry
      summary: Promote schema to ACTIVE
      description: Promotes a DRAFT schema to ACTIVE, deprecating the previous active version
      operationId: promoteVersion
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: eventTypeId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: versionId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EventSchemaVersionResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/schemas/{eventTypeId}/versions/{versionId}/deprecate:
    post:
      tags:
      - Schema Registry
      summary: Deprecate schema version
      description: Sets schema version status to DEPRECATED
      operationId: deprecateVersion
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: eventTypeId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: versionId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EventSchemaVersionResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/schemas/{eventTypeId}/versions/{versionId}:
    get:
      tags:
      - Schema Registry
      summary: Get schema version
      description: Returns schema version details
      operationId: getVersion
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: eventTypeId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: versionId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EventSchemaVersionResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/schemas/{eventTypeId}/changes:
    get:
      tags:
      - Schema Registry
      summary: List schema changes for event type
      description: Returns the diff history for a specific event type
      operationId: listChanges
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: eventTypeId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SchemaChangeResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/schemas/changes:
    get:
      tags:
      - Schema Registry
      summary: List all schema changes
      description: Returns the diff history across all event types in the project
      operationId: listProjectChanges
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SchemaChangeResponse'
      security:
      - bearerAuth: []
      - apiKey: []
components:
  schemas:
    EventSchemaVersionRequest:
      type: object
      properties:
        schemaJson:
          type: string
          minLength: 1
        compatibilityMode:
          type: string
          description: Compatibility promise checked against the previous version. Defaults to the previous version's mode, or NONE for the first version.
          enum:
          - NONE
          - BACKWARD
          - FORWARD
          - FULL
        description:
          type: string
      required:
      - schemaJson
    EventSchemaVersionResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        eventTypeId:
          type: string
          format: uuid
        version:
          type: integer
          format: int32
        schemaJson:
          type: string
        fingerprint:
          type: string
        status:
          type: string
        compatibilityMode:
          type: string
          enum:
          - NONE
          - BACKWARD
          - FORWARD
          - FULL
        description:
          type: string
        createdBy:
          type: string
          format: uuid
        createdAt:
          type: string
          format: date-time
    EventTypeCatalogRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          pattern: ^[a-z][a-z0-9_.]*$
        description:
          type: string
      required:
      - name
    SchemaChangeResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        eventTypeId:
          type: string
          format: uuid
        eventTypeName:
          type: string
        fromVersionId:
          type: string
          format: uuid
        fromVersion:
          type: integer
          format: int32
        toVersionId:
          type: string
          format: uuid
        toVersion:
          type: integer
          format: int32
        changeSummary:
          type: string
        breaking:
          type: boolean
        createdAt:
          type: string
          format: date-time
    EventTypeCatalogResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        projectId:
          type: string
          format: uuid
        name:
          type: string
        description:
          type: string
        latestVersion:
          type: integer
          format: int32
        activeVersionStatus:
          type: string
        hasBreakingChanges:
          type: boolean
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  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_…