Railhook MCP apps API
Connecting AI apps to a project over OAuth, for the MCP server
Connecting AI apps to a project over OAuth, for the MCP server
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/railhook-io:railhook-io-mcp-apps-api"
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.
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: 3.2.0
info:
title: Railhook MCP apps 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: MCP apps
description: Connecting AI apps to a project over OAuth, for the MCP server
paths:
/api/v1/oauth/requests/{requestId}/deny:
post:
tags:
- MCP apps
summary: Decline an MCP app's sign-in request
description: Ends the request and returns the URL that tells the app access was denied.
operationId: denyMcpConsentRequest
parameters:
- name: requestId
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Declined; follow redirectUrl
content:
'*/*':
schema:
$ref: '#/components/schemas/McpConsentDecisionResponse'
'404':
description: Expired, already answered, or never existed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
/api/v1/oauth/requests/{requestId}/approve:
post:
tags:
- MCP apps
summary: Approve an MCP app's sign-in request
description: Connects the app to one project of the caller's organization with READ_ONLY or READ_WRITE access — the same scope an API key carries. Any member may grant READ_ONLY; READ_WRITE takes a role that may create an API key. Returns the URL to send the browser to, carrying the authorization code.
operationId: approveMcpConsentRequest
parameters:
- name: requestId
in: path
required: true
schema:
type: string
format: uuid
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/McpConsentApproveRequest'
required: true
responses:
'200':
description: Approved; follow redirectUrl
content:
'*/*':
schema:
$ref: '#/components/schemas/McpConsentDecisionResponse'
'403':
description: The caller's role may not grant READ_WRITE
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Request expired or answered, or project not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
/api/v1/projects/{projectId}/mcp-grants:
get:
tags:
- MCP apps
summary: List connected MCP apps
description: Apps connected to this project through OAuth sign-in, newest first.
operationId: listMcpGrants
parameters:
- name: projectId
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: OK
content:
'*/*':
schema:
type: array
items:
$ref: '#/components/schemas/McpGrantResponse'
security:
- bearerAuth: []
/api/v1/oauth/requests/{requestId}:
get:
tags:
- MCP apps
summary: Describe an MCP app's sign-in request
description: 'What the consent screen shows: the app''s name, the host its code will be sent to, the access it asked for, and whether the caller''s role may grant write access.'
operationId: describeMcpConsentRequest
parameters:
- name: requestId
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: The request, still waiting for an answer
content:
'*/*':
schema:
$ref: '#/components/schemas/McpConsentRequestResponse'
'404':
description: Expired, already answered, or never existed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
/api/v1/projects/{projectId}/mcp-grants/{grantId}:
delete:
tags:
- MCP apps
summary: Disconnect an MCP app
description: 'Revokes the app''s access to this project at once: its access and refresh tokens stop working, and it has to be connected again from the app.'
operationId: revokeMcpGrant
parameters:
- name: projectId
in: path
required: true
schema:
type: string
format: uuid
- name: grantId
in: path
required: true
schema:
type: string
format: uuid
responses:
'204':
description: Disconnected
security:
- bearerAuth: []
components:
schemas:
McpConsentRequestResponse:
type: object
properties:
requestId:
type: string
format: uuid
clientName:
type: string
clientUri:
type: string
redirectHost:
type: string
requestedScope:
type: string
enum:
- READ_WRITE
- READ_ONLY
canGrantWrite:
type: boolean
expiresAt:
type: string
format: date-time
McpGrantResponse:
type: object
properties:
id:
type: string
format: uuid
projectId:
type: string
format: uuid
clientName:
type: string
clientUri:
type: string
redirectHost:
type: string
scope:
type: string
enum:
- READ_WRITE
- READ_ONLY
approvedByEmail:
type: string
createdAt:
type: string
format: date-time
lastUsedAt:
type: string
format: date-time
ErrorResponse:
type: object
properties:
error:
type: string
message:
type: string
status:
type: integer
format: int32
fieldErrors:
type: object
additionalProperties:
type: string
McpConsentApproveRequest:
type: object
properties:
projectId:
type: string
format: uuid
scope:
type: string
enum:
- READ_WRITE
- READ_ONLY
required:
- projectId
- scope
McpConsentDecisionResponse:
type: object
properties:
redirectUrl:
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_…