Railhook Incidents API

Incident management with timeline and RCA

GitHub OpenAPI

Operations 6

GET /api/v1/projects/{projectId}/incidents/{incidentId} Get incident with timeline #
PUT /api/v1/projects/{projectId}/incidents/{incidentId} Update incident (status, RCA notes, severity) #
GET /api/v1/projects/{projectId}/incidents List incidents #
POST /api/v1/projects/{projectId}/incidents Create incident #
POST /api/v1/projects/{projectId}/incidents/{incidentId}/timeline Add timeline entry to incident #
GET /api/v1/projects/{projectId}/incidents/open-count Count open incidents #

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-incidents-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-incidents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Railhook Incidents 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: Incidents
  description: Incident management with timeline and RCA
paths:
  /api/v1/projects/{projectId}/incidents/{incidentId}:
    get:
      tags:
      - Incidents
      summary: Get incident with timeline
      description: The incident and every entry recorded against it, in the order they happened.
      operationId: getIncident
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: incidentId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/IncidentResponse'
      security:
      - bearerAuth: []
      - apiKey: []
    put:
      tags:
      - Incidents
      summary: Update incident (status, RCA notes, severity)
      description: A change of status is itself recorded on the timeline, so the history stays readable after the fact.
      operationId: updateIncident
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: incidentId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IncidentRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/IncidentResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/incidents:
    get:
      tags:
      - Incidents
      summary: List incidents
      description: Incidents in the project, newest first, filterable by status and severity.
      operationId: listIncidents
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: openOnly
        in: query
        required: false
        schema:
          type: boolean
          default: false
      - 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/PageIncidentResponse'
      security:
      - bearerAuth: []
      - apiKey: []
    post:
      tags:
      - Incidents
      summary: Create incident
      description: Opens an incident and records its first timeline entry.
      operationId: createIncident
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IncidentRequest'
        required: true
      responses:
        '201':
          description: Incident created
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/IncidentResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/incidents/{incidentId}/timeline:
    post:
      tags:
      - Incidents
      summary: Add timeline entry to incident
      description: Appends a note, an action taken, or an observation.
      operationId: addTimeline
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: incidentId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TimelineEntryRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/IncidentResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/projects/{projectId}/incidents/open-count:
    get:
      tags:
      - Incidents
      summary: Count open incidents
      description: How many incidents are not yet resolved, how many are being investigated, and how many of them are critical — for a badge and the three tiles above the list, not a report. Every count spans the project, which is what separates them from anything derived from a page of it.
      operationId: countOpen
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/IncidentCountsResponse'
      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
    IncidentRequest:
      type: object
      properties:
        title:
          type: string
        severity:
          type: string
          enum:
          - INFO
          - WARNING
          - CRITICAL
        status:
          type: string
          enum:
          - OPEN
          - INVESTIGATING
          - RESOLVED
        rcaNotes:
          type: string
    IncidentResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        projectId:
          type: string
          format: uuid
        title:
          type: string
        status:
          type: string
          enum:
          - OPEN
          - INVESTIGATING
          - RESOLVED
        severity:
          type: string
          enum:
          - INFO
          - WARNING
          - CRITICAL
        rcaNotes:
          type: string
        alertRuleId:
          type: string
          format: uuid
        alertRuleName:
          type: string
        autoResolved:
          type: boolean
        resolvedAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        timeline:
          type: array
          items:
            $ref: '#/components/schemas/TimelineEntry'
    PageIncidentResponse:
      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/IncidentResponse'
        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
    IncidentCountsResponse:
      type: object
      description: Unresolved incident counts for a project
      properties:
        count:
          type: integer
          format: int64
          description: Incidents that are not resolved — OPEN and INVESTIGATING together
        investigating:
          type: integer
          format: int64
          description: Incidents someone is actively working
        critical:
          type: integer
          format: int64
          description: Unresolved incidents at CRITICAL severity
    TimelineEntryRequest:
      type: object
      properties:
        entryType:
          type: string
          enum:
          - FAILURE
          - RETRY
          - REPLAY
          - NOTE
          - STATUS_CHANGE
        title:
          type: string
          minLength: 1
        detail:
          type: string
        deliveryId:
          type: string
          format: uuid
        endpointId:
          type: string
          format: uuid
      required:
      - entryType
      - title
    TimelineEntry:
      type: object
      properties:
        id:
          type: string
          format: uuid
        entryType:
          type: string
        title:
          type: string
        detail:
          type: string
        deliveryId:
          type: string
          format: uuid
        endpointId:
          type: string
          format: uuid
        createdAt:
          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_…