Railhook Incoming Sources API

Incoming webhook source configuration

GitHub OpenAPI

Operations 6

GET /api/v1/projects/{projectId}/incoming-sources/{id} Get incoming source #
PUT /api/v1/projects/{projectId}/incoming-sources/{id} Update incoming source #
DELETE /api/v1/projects/{projectId}/incoming-sources/{id} Delete incoming source #
GET /api/v1/projects/{projectId}/incoming-sources List incoming sources #
POST /api/v1/projects/{projectId}/incoming-sources Create incoming source #
GET /api/v1/incoming-providers List incoming providers #

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-incoming-sources-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-incoming-sources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Railhook Incoming Sources 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 Sources
  description: Incoming webhook source configuration
paths:
  /api/v1/projects/{projectId}/incoming-sources/{id}:
    get:
      tags:
      - Incoming Sources
      summary: Get incoming source
      description: Returns incoming source details by ID
      operationId: getSource
      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: Source retrieved
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/IncomingSourceResponse'
        '404':
          description: Source not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - bearerAuth: []
      - apiKey: []
    put:
      tags:
      - Incoming Sources
      summary: Update incoming source
      description: Updates incoming source configuration
      operationId: updateSource
      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/IncomingSourceRequest'
        required: true
      responses:
        '200':
          description: Source updated
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/IncomingSourceResponse'
        '404':
          description: Source not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - bearerAuth: []
      - apiKey: []
    delete:
      tags:
      - Incoming Sources
      summary: Delete incoming source
      description: Disables the incoming source (soft delete)
      operationId: deleteSource
      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: Source disabled
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/incoming-sources:
    get:
      tags:
      - Incoming Sources
      summary: List incoming sources
      description: Returns paginated incoming sources for the project
      operationId: listSources
      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/PageIncomingSourceResponse'
      security:
      - bearerAuth: []
      - apiKey: []
    post:
      tags:
      - Incoming Sources
      summary: Create incoming source
      description: Creates a new incoming webhook source for the project
      operationId: createSource
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IncomingSourceRequest'
        required: true
      responses:
        '201':
          description: Source created
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/IncomingSourceResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/incoming-providers:
    get:
      tags:
      - Incoming Sources
      summary: List incoming providers
      description: 'Providers whose signatures an incoming source verifies in PROVIDER mode. GENERIC is not listed: it is verified with HMAC_GENERIC.'
      operationId: listIncomingProviders
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/IncomingProviderResponse'
      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
    IncomingSourceRequest:
      type: object
      description: Request to create or update an incoming webhook source
      properties:
        name:
          type: string
          description: Display name for the source
          example: GitHub Webhooks
          maxLength: 255
          minLength: 0
        slug:
          type: string
          description: URL-friendly slug (auto-generated if omitted)
          example: github-webhooks
          maxLength: 64
          minLength: 0
          pattern: ^[a-z0-9][a-z0-9-]*$
        providerType:
          type: string
          description: GENERIC, or the id of a provider listed by GET /api/v1/incoming-providers
          example: GITHUB
        status:
          type: string
          description: Source status
          enum:
          - ACTIVE
          - DISABLED
        verificationMode:
          type: string
          description: Signature verification mode
          enum:
          - NONE
          - HMAC_GENERIC
          - PROVIDER
        hmacSecret:
          type: string
          description: HMAC secret for signature verification (write-only, never returned)
        hmacHeaderName:
          type: string
          description: HTTP header name containing the signature
          example: X-Hub-Signature-256
          maxLength: 255
          minLength: 0
        hmacSignaturePrefix:
          type: string
          description: Prefix before the signature value
          example: sha256=
          maxLength: 50
          minLength: 0
        rateLimitPerSecond:
          type: integer
          format: int32
          description: Rate limit per second for the ingress URL, at most the plan's own (null = the default limit)
          example: 100
          maximum: 10000
          minimum: 1
      required:
      - name
    IncomingSourceResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        projectId:
          type: string
          format: uuid
        name:
          type: string
        slug:
          type: string
        providerType:
          type: string
        status:
          type: string
          enum:
          - ACTIVE
          - DISABLED
        ingressPathToken:
          type: string
        ingressUrl:
          type: string
        verificationMode:
          type: string
          enum:
          - NONE
          - HMAC_GENERIC
          - PROVIDER
        hmacHeaderName:
          type: string
        hmacSignaturePrefix:
          type: string
        hmacSecretConfigured:
          type: boolean
        rateLimitPerSecond:
          type: integer
          format: int32
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    IncomingProviderResponse:
      type: object
      description: A provider whose webhooks Railhook verifies natively
      properties:
        id:
          type: string
          description: The value to send as an incoming source's providerType
          example: STRIPE
        displayName:
          type: string
          example: Stripe
        signatureHeader:
          type: string
          description: Null when the provider signs inside the body
          example: Stripe-Signature
      required:
      - displayName
      - id
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        status:
          type: integer
          format: int32
        fieldErrors:
          type: object
          additionalProperties:
            type: string
    PageIncomingSourceResponse:
      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/IncomingSourceResponse'
        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_…