Railhook Endpoints API

Webhook endpoint configuration

GitHub OpenAPI

Operations 12

GET /api/v1/projects/{projectId}/endpoints/{id} Get endpoint #
PUT /api/v1/projects/{projectId}/endpoints/{id} Update endpoint #
DELETE /api/v1/projects/{projectId}/endpoints/{id} Delete endpoint #
GET /api/v1/projects/{projectId}/endpoints List endpoints #
POST /api/v1/projects/{projectId}/endpoints Create endpoint #
POST /api/v1/projects/{projectId}/endpoints/{id}/verify Verify endpoint #
POST /api/v1/projects/{projectId}/endpoints/{id}/test Test endpoint #
POST /api/v1/projects/{projectId}/endpoints/{id}/skip-verification Skip verification #
POST /api/v1/projects/{projectId}/endpoints/{id}/rotate-secret Rotate secret #
POST /api/v1/projects/{projectId}/endpoints/{id}/mtls Configure mTLS #
DELETE /api/v1/projects/{projectId}/endpoints/{id}/mtls Disable mTLS #
POST /api/v1/projects/{projectId}/endpoints/{id}/enable Enable an endpoint #

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-endpoints-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-endpoints-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Railhook Endpoints 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: Endpoints
  description: Webhook endpoint configuration
paths:
  /api/v1/projects/{projectId}/endpoints/{id}:
    get:
      tags:
      - Endpoints
      summary: Get endpoint
      description: Returns endpoint details by ID
      operationId: getEndpoint
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EndpointResponse'
      security:
      - bearerAuth: []
      - apiKey: []
    put:
      tags:
      - Endpoints
      summary: Update endpoint
      description: Updates endpoint configuration
      operationId: updateEndpoint
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EndpointResponse'
      security:
      - bearerAuth: []
      - apiKey: []
    delete:
      tags:
      - Endpoints
      summary: Delete endpoint
      description: Deletes an endpoint
      operationId: deleteEndpoint
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: Endpoint deleted
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/endpoints:
    get:
      tags:
      - Endpoints
      summary: List endpoints
      description: Returns paginated endpoints for the project
      operationId: listEndpoints
      parameters:
      - name: projectId
        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: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/PageEndpointResponse'
      security:
      - bearerAuth: []
      - apiKey: []
    post:
      tags:
      - Endpoints
      summary: Create endpoint
      description: Creates a new webhook endpoint for the project
      operationId: createEndpoint
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EndpointRequest'
        required: true
      responses:
        '201':
          description: Endpoint created
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EndpointResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/endpoints/{id}/verify:
    post:
      tags:
      - Endpoints
      summary: Verify endpoint
      description: Sends a verification challenge to the endpoint
      operationId: verifyEndpoint
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/VerificationResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/endpoints/{id}/test:
    post:
      tags:
      - Endpoints
      summary: Test endpoint
      description: Sends a test webhook to verify endpoint connectivity
      operationId: testEndpoint
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EndpointTestResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/endpoints/{id}/skip-verification:
    post:
      tags:
      - Endpoints
      summary: Skip verification
      description: Skips verification for trusted endpoints (admin only)
      operationId: skipVerification
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SkipVerificationRequest'
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EndpointResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/endpoints/{id}/rotate-secret:
    post:
      tags:
      - Endpoints
      summary: Rotate secret
      description: Generates a new webhook signing secret
      operationId: rotateSecret
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EndpointResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/endpoints/{id}/mtls:
    post:
      tags:
      - Endpoints
      summary: Configure mTLS
      description: Configures mutual TLS for the endpoint
      operationId: configureMtls
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MtlsConfigRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EndpointResponse'
      security:
      - bearerAuth: []
      - apiKey: []
    delete:
      tags:
      - Endpoints
      summary: Disable mTLS
      description: Disables mutual TLS for the endpoint
      operationId: disableMtls
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EndpointResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/endpoints/{id}/enable:
    post:
      tags:
      - Endpoints
      summary: Enable an endpoint
      description: 'Turns the endpoint back on and clears an auto-disable: the recorded reason, the time it was disabled, and the run of failures that led to it.'
      operationId: enableEndpoint
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/EndpointResponse'
      security:
      - bearerAuth: []
      - apiKey: []
components:
  schemas:
    MtlsConfigRequest:
      type: object
      properties:
        clientCert:
          type: string
          minLength: 1
        clientKey:
          type: string
          minLength: 1
        caCert:
          type: string
      required:
      - clientCert
      - clientKey
    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
    EndpointRequest:
      type: object
      properties:
        url:
          type: string
          minLength: 1
        description:
          type: string
          maxLength: 500
          minLength: 0
        secret:
          type: string
        enabled:
          type: boolean
        rateLimitPerSecond:
          type: integer
          format: int32
          description: Per-endpoint delivery throttle. 0 removes the limit.
          maximum: 10000
          minimum: 0
        allowedSourceIps:
          type: string
        signatureScheme:
          type: string
          enum:
          - LEGACY
          - STANDARD
          - BOTH
        consumerId:
          type: string
          format: uuid
          description: The Consumer this endpoint belongs to, which puts it in that Consumer's portal. Absent leaves the current assignment alone.
      required:
      - url
    PageEndpointResponse:
      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/EndpointResponse'
        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
    VerificationResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        status:
          type: string
        reason:
          type: string
          enum:
          - TUNNEL_OFFLINE
    EndpointTestResponse:
      type: object
      properties:
        success:
          type: boolean
        httpStatusCode:
          type: integer
          format: int32
        responseBody:
          type: string
        errorMessage:
          type: string
        latencyMs:
          type: integer
          format: int64
        message:
          type: string
    EndpointResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        projectId:
          type: string
          format: uuid
        consumerId:
          type: string
          format: uuid
        url:
          type: string
        description:
          type: string
        enabled:
          type: boolean
        rateLimitPerSecond:
          type: integer
          format: int32
        allowedSourceIps:
          type: string
        mtlsEnabled:
          type: boolean
        verificationStatus:
          type: string
        verificationAttemptedAt:
          type: string
          format: date-time
        verificationCompletedAt:
          type: string
          format: date-time
        verificationSkipReason:
          type: string
        failingSince:
          type: string
          format: date-time
        consecutiveFailures:
          type: integer
          format: int32
        autoDisabledAt:
          type: string
          format: date-time
        autoDisabledReason:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        secret:
          type: string
        signatureScheme:
          type: string
          enum:
          - LEGACY
          - STANDARD
          - BOTH
        standardWebhooksSecret:
          type: string
    SkipVerificationRequest:
      type: object
      properties:
        reason:
          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_…