Railhook Organization Admin API
Operator view of every tenant, and suspension (platform admin only)
Operator view of every tenant, and suspension (platform admin only)
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-organization-admin-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 Organization Admin 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: Organization Admin
description: Operator view of every tenant, and suspension (platform admin only)
paths:
/api/v1/admin/organizations/{organizationId}/suspend:
post:
tags:
- Organization Admin
summary: Suspend an organization
description: Stops the organization changing anything — ingest included — until it is reinstated. Reads keep working, so the tenant can sign in and be shown why. Independent of billing status, so a payment does not lift it. A signed-in platform admin's own address is recorded as suspendedBy.
operationId: adminSuspendOrganization
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SuspendOrganizationRequest'
required: true
responses:
'200':
description: Suspended
content:
'*/*':
schema:
$ref: '#/components/schemas/AdminOrganizationResponse'
'400':
description: No reason given — the tenant is shown it
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden — requires the platform admin
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: No such organization
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
- platformAdminToken: []
/api/v1/admin/organizations/{organizationId}/reinstate:
post:
tags:
- Organization Admin
summary: Reinstate an organization
description: Lifts a suspension. Reinstating one that is not suspended is a no-op. The optional reason is kept in the organization's audit log.
operationId: adminReinstateOrganization
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ReinstateOrganizationRequest'
responses:
'200':
description: Reinstated
content:
'*/*':
schema:
$ref: '#/components/schemas/AdminOrganizationResponse'
'403':
description: Forbidden — requires the platform admin
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: No such organization
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
- platformAdminToken: []
/api/v1/admin/organizations:
get:
tags:
- Organization Admin
summary: List organizations
description: Every organization on this deployment, newest first. Optionally narrowed by name or a member's address, or to those currently suspended.
operationId: adminListOrganizations
parameters:
- name: search
in: query
required: false
schema:
type: string
- name: suspendedOnly
in: query
required: false
schema:
type: boolean
default: false
- name: pageable
in: query
required: true
schema:
$ref: '#/components/schemas/Pageable'
responses:
'200':
description: A page of organizations
content:
'*/*':
schema:
$ref: '#/components/schemas/PageAdminOrganizationResponse'
'403':
description: Forbidden — requires the platform admin
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
- platformAdminToken: []
/api/v1/admin/organizations/{organizationId}:
get:
tags:
- Organization Admin
summary: Get one organization
description: Plan, billing status, owner, project and member counts, events this month, and any suspension.
operationId: adminGetOrganization
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: The organization
content:
'*/*':
schema:
$ref: '#/components/schemas/AdminOrganizationResponse'
'403':
description: Forbidden — requires the platform admin
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: No such organization
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
- platformAdminToken: []
/api/v1/admin/organizations/{organizationId}/usage:
get:
tags:
- Organization Admin
summary: What one organization has used
description: 'Events this billing period, endpoints, projects and members, each against the limit their plan allows — the same numbers the tenant sees on their own billing page, so a support conversation is about one set of figures. Carries no customer data: counts and limits only.'
operationId: adminGetOrganizationUsage
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Usage against the plan
content:
'*/*':
schema:
$ref: '#/components/schemas/UsageResponse'
'403':
description: Forbidden — requires the platform admin
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: No such organization
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
- platformAdminToken: []
/api/v1/admin/organizations/{organizationId}/projects:
get:
tags:
- Organization Admin
summary: Projects of one organization
description: 'The organization''s live projects: name and creation time, nothing they contain.'
operationId: adminListOrganizationProjects
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
- name: pageable
in: query
required: true
schema:
$ref: '#/components/schemas/Pageable'
responses:
'200':
description: A page of projects
content:
'*/*':
schema:
$ref: '#/components/schemas/PageAdminProjectResponse'
'403':
description: Forbidden — requires the platform admin
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: No such organization
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
- platformAdminToken: []
/api/v1/admin/organizations/{organizationId}/members:
get:
tags:
- Organization Admin
summary: Members of one organization
description: Each member's address, role, membership and account status, sign-in methods, and when they joined and were last active.
operationId: adminListOrganizationMembers
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
- name: pageable
in: query
required: true
schema:
$ref: '#/components/schemas/Pageable'
responses:
'200':
description: A page of members
content:
'*/*':
schema:
$ref: '#/components/schemas/PageAdminMemberResponse'
'403':
description: Forbidden — requires the platform admin
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: No such organization
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
- platformAdminToken: []
/api/v1/admin/organizations/{organizationId}/audit-log:
get:
tags:
- Organization Admin
summary: Audit log of one organization
description: 'Who did what in the organization, newest first: action, resource, actor, outcome, address. Without request bodies.'
operationId: adminListOrganizationAuditLog
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
format: uuid
- name: pageable
in: query
required: true
schema:
$ref: '#/components/schemas/Pageable'
responses:
'200':
description: A page of audit entries
content:
'*/*':
schema:
$ref: '#/components/schemas/PageAdminAuditEntryResponse'
'403':
description: Forbidden — requires the platform admin
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: No such organization
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
- platformAdminToken: []
components:
schemas:
UsageResponse:
type: object
properties:
events:
$ref: '#/components/schemas/ResourceUsage'
endpoints:
$ref: '#/components/schemas/ResourceUsage'
projects:
$ref: '#/components/schemas/ResourceUsage'
members:
$ref: '#/components/schemas/ResourceUsage'
rateLimitPerSecond:
type: integer
format: int32
retentionDays:
type: integer
format: int32
periodStart:
type: string
format: date-time
periodEnd:
type: string
format: date-time
ResourceUsage:
type: object
properties:
current:
type: integer
format: int64
limit:
type: integer
format: int64
percentUsed:
type: number
format: double
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
AdminOrganizationResponse:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
planName:
type: string
billingStatus:
type: string
enum:
- ACTIVE
- PAST_DUE
- GRACE_PERIOD
- SUSPENDED
- CANCELLED
createdAt:
type: string
format: date-time
ownerEmail:
type: string
projectCount:
type: integer
format: int64
memberCount:
type: integer
format: int64
eventsThisMonth:
type: integer
format: int64
eventsLimit:
type: integer
format: int64
suspendedAt:
type: string
format: date-time
suspensionReason:
type: string
suspendedBy:
type: string
AdminProjectResponse:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
createdAt:
type: string
format: date-time
ReinstateOrganizationRequest:
type: object
properties:
reason:
type: string
maxLength: 500
minLength: 0
AdminMemberResponse:
type: object
properties:
userId:
type: string
format: uuid
email:
type: string
fullName:
type: string
role:
type: string
enum:
- OWNER
- DEVELOPER
- VIEWER
- API_KEY
membershipStatus:
type: string
enum:
- INVITED
- ACTIVE
- DISABLED
emailVerified:
type: boolean
userStatus:
type: string
enum:
- ACTIVE
- PENDING_VERIFICATION
- DISABLED
signInMethods:
type: array
items:
type: string
joinedAt:
type: string
format: date-time
lastSeenAt:
type: string
format: date-time
platformAdmin:
type: boolean
PageAdminProjectResponse:
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/AdminProjectResponse'
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
SuspendOrganizationRequest:
type: object
properties:
reason:
type: string
maxLength: 500
minLength: 0
suspendedBy:
type: string
maxLength: 200
minLength: 0
required:
- reason
PageAdminAuditEntryResponse:
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/AdminAuditEntryResponse'
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
ErrorResponse:
type: object
properties:
error:
type: string
message:
type: string
status:
type: integer
format: int32
fieldErrors:
type: object
additionalProperties:
type: string
PageAdminMemberResponse:
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/AdminMemberResponse'
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
Pageable:
type: object
properties:
page:
type: integer
format: int32
minimum: 0
size:
type: integer
format: int32
minimum: 1
sort:
type: array
items:
type: string
PageAdminOrganizationResponse:
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/AdminOrganizationResponse'
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
AdminAuditEntryResponse:
type: object
properties:
id:
type: string
format: uuid
action:
type: string
resourceType:
type: string
resourceId:
type: string
format: uuid
actorEmail:
type: string
status:
type: string
clientIp:
type: string
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_…