Railhook Dashboard API

Project dashboard, statistics and analytics

GitHub OpenAPI

Operations 4

GET /api/v1/dashboard/projects/{projectId} Get project dashboard #
GET /api/v1/dashboard/projects/{projectId}/onboarding Get onboarding status #
GET /api/v1/dashboard/projects/{projectId}/analytics Get project analytics #
GET /api/v1/dashboard/projects/{projectId}/analytics/export Export project analytics as CSV #

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-dashboard-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-dashboard-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Railhook Dashboard 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: Dashboard
  description: Project dashboard, statistics and analytics
paths:
  /api/v1/dashboard/projects/{projectId}:
    get:
      tags:
      - Dashboard
      summary: Get project dashboard
      description: Returns delivery statistics for a project
      operationId: getProjectDashboard
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/DashboardStatsResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/dashboard/projects/{projectId}/onboarding:
    get:
      tags:
      - Dashboard
      summary: Get onboarding status
      description: Returns server-derived onboarding checklist status
      operationId: getOnboardingStatus
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/OnboardingStatusResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/dashboard/projects/{projectId}/analytics:
    get:
      tags:
      - Dashboard
      summary: Get project analytics
      description: Returns detailed analytics with time series data for a preset period or a custom from/to range of at most 90 days. Buckets are hourly up to two days, daily beyond.
      operationId: getProjectAnalytics
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: period
        in: query
        description: 'Time period: 24h, 7d, 30d. Defaults to 24h'
        required: false
        schema:
          type: string
      - name: from
        in: query
        description: Range start, ISO-8601 instant
        required: false
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        description: Range end, ISO-8601 instant
        required: false
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/AnalyticsResponse'
      security:
      - bearerAuth: []
      - apiKey: []
  /api/v1/dashboard/projects/{projectId}/analytics/export:
    get:
      tags:
      - Dashboard
      summary: Export project analytics as CSV
      description: 'The same period or range as the analytics endpoint: one row per time bucket, then a blank line and one row per endpoint.'
      operationId: exportProjectAnalytics
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: period
        in: query
        description: 'Time period: 24h, 7d, 30d. Defaults to 24h'
        required: false
        schema:
          type: string
      - name: from
        in: query
        description: Range start, ISO-8601 instant
        required: false
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        description: Range end, ISO-8601 instant
        required: false
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: OK
      security:
      - bearerAuth: []
      - apiKey: []
components:
  schemas:
    LatencyPercentiles:
      type: object
      properties:
        p50:
          type: integer
          format: int64
        p75:
          type: integer
          format: int64
        p90:
          type: integer
          format: int64
        p95:
          type: integer
          format: int64
        p99:
          type: integer
          format: int64
        max:
          type: integer
          format: int64
    EndpointPerformance:
      type: object
      properties:
        endpointId:
          type: string
        url:
          type: string
        enabled:
          type: boolean
        totalDeliveries:
          type: integer
          format: int64
        successfulDeliveries:
          type: integer
          format: int64
        failedDeliveries:
          type: integer
          format: int64
        successRate:
          type: number
          format: double
        avgLatencyMs:
          type: number
          format: double
        p95LatencyMs:
          type: integer
          format: int64
        lastDeliveryAt:
          type: string
        status:
          type: string
          enum:
          - HEALTHY
          - DEGRADED
          - FAILING
    OverviewMetrics:
      type: object
      properties:
        totalEvents:
          type: integer
          format: int64
        totalDeliveries:
          type: integer
          format: int64
        successfulDeliveries:
          type: integer
          format: int64
        failedDeliveries:
          type: integer
          format: int64
        successRate:
          type: number
          format: double
        avgLatencyMs:
          type: number
          format: double
        p50LatencyMs:
          type: integer
          format: int64
        p95LatencyMs:
          type: integer
          format: int64
        p99LatencyMs:
          type: integer
          format: int64
        eventsPerSecond:
          type: number
          format: double
        deliveriesPerSecond:
          type: number
          format: double
    EndpointHealthSummary:
      type: object
      properties:
        id:
          type: string
        url:
          type: string
        enabled:
          type: boolean
        totalDeliveries:
          type: integer
          format: int64
        successfulDeliveries:
          type: integer
          format: int64
        successRate:
          type: number
          format: double
    DeliveryStats:
      type: object
      properties:
        totalDeliveries:
          type: integer
          format: int64
        successfulDeliveries:
          type: integer
          format: int64
        failedDeliveries:
          type: integer
          format: int64
        pendingDeliveries:
          type: integer
          format: int64
        dlqDeliveries:
          type: integer
          format: int64
        successRate:
          type: number
          format: double
    EventTypeBreakdown:
      type: object
      properties:
        eventType:
          type: string
        count:
          type: integer
          format: int64
        percentage:
          type: number
          format: double
        successCount:
          type: integer
          format: int64
        successRate:
          type: number
          format: double
    TimeRange:
      type: object
      properties:
        from:
          type: string
        to:
          type: string
        granularity:
          type: string
    OnboardingStatusResponse:
      type: object
      properties:
        hasEndpoints:
          type: boolean
        hasSubscriptions:
          type: boolean
        hasApiKeys:
          type: boolean
        hasEvents:
          type: boolean
        hasDeliveries:
          type: boolean
        hasIncomingSources:
          type: boolean
        hasIncomingDestinations:
          type: boolean
    AnalyticsResponse:
      type: object
      properties:
        timeRange:
          $ref: '#/components/schemas/TimeRange'
        overview:
          $ref: '#/components/schemas/OverviewMetrics'
        deliveryTimeSeries:
          type: array
          items:
            $ref: '#/components/schemas/TimeSeriesPoint'
        latencyTimeSeries:
          type: array
          items:
            $ref: '#/components/schemas/TimeSeriesPoint'
        eventTypeBreakdown:
          type: array
          items:
            $ref: '#/components/schemas/EventTypeBreakdown'
        endpointPerformance:
          type: array
          items:
            $ref: '#/components/schemas/EndpointPerformance'
        latencyPercentiles:
          $ref: '#/components/schemas/LatencyPercentiles'
    DashboardStatsResponse:
      type: object
      properties:
        deliveryStats:
          $ref: '#/components/schemas/DeliveryStats'
        recentEvents:
          type: array
          items:
            $ref: '#/components/schemas/RecentEventSummary'
        endpointHealth:
          type: array
          items:
            $ref: '#/components/schemas/EndpointHealthSummary'
    TimeSeriesPoint:
      type: object
      properties:
        timestamp:
          type: string
        total:
          type: integer
          format: int64
        success:
          type: integer
          format: int64
        failed:
          type: integer
          format: int64
        avgLatencyMs:
          type: number
          format: double
    RecentEventSummary:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
        createdAt:
          type: string
        deliveryCount:
          type: integer
          format: int32
  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_…