Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
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.
openapi: 3.2.0
info:
title: Meridian Admin API
description: Multi-session Claude coordinator MCP server.
version: 0.1.0
tags:
- name: Admin
paths:
/admin/health:
get:
summary: Admin Health Json
description: JSON health check for ops/curl — restricted to admin users.
operationId: admin_health_json_admin_health_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Admin Health Json Admin Health Get
tags:
- Admin
/admin/pool-load:
get:
summary: Admin Pool Load
description: '1b2fbebe -- redacted per-tenant / per-Neon-pool load telemetry (admin only).
Same gate as /admin/health. In-memory and per server process: with several Fly
machines each one reports only the requests it served. Advisory only: nothing here
moves a tenant or changes a quota.'
operationId: admin_pool_load_admin_pool_load_get
parameters:
- name: top_n
in: query
required: false
schema:
type: integer
default: 10
title: Top N
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Admin Pool Load Admin Pool Load Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Admin
/admin/stats:
get:
summary: Admin Stats Json
description: 'd1cb1100 — launch/user stats for the admin Users widget: free-tier count
vs the launch cap (+ percent), total tenants, provisioned count, waitlist.'
operationId: admin_stats_json_admin_stats_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Admin Stats Json Admin Stats Get
tags:
- Admin
/admin/git-status:
get:
summary: Git Status
description: 'Check if local repo is behind/ahead of remote.
ece2ac0a — runs ``git fetch`` on the server; operator-only when hosted.'
operationId: git_status_admin_git_status_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Git Status Admin Git Status Get
tags:
- Admin
/admin/shutdown:
post:
summary: Admin Shutdown
description: 'Gracefully stop the server process.
ece2ac0a — was callable by anyone on the hosted service. Hosted mode now
requires the operator (admin session + admin password).'
operationId: admin_shutdown_admin_shutdown_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Admin
/admin/restart:
post:
summary: Admin Restart
description: 'Restart the server by spawning a new process then shutting down.
Requires an explicit ``{"confirm": true}`` body — a restart kills every
active session on the machine (a real hazard on shared Fly machines), so an
unconfirmed call returns a warning instead of restarting.
ece2ac0a — hosted mode requires the operator (admin session + admin
password); previously anyone could restart the hosted server.'
operationId: admin_restart_admin_restart_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Admin
/admin/tenants/{tenant_id}/reset-provisioning:
post:
summary: Admin Reset Tenant Provisioning
description: 'Reset a tenant back to a de-novo, never-provisioned state -- admin/ops
tool for re-testing signup/provisioning against the same account without
a full (irreversible) account deletion + re-signup cycle each time.
Drops the tenant''s own customer database (never the whole shared pool
project -- see hosted.reset_tenant_provisioning''s docstring), clears its
Neon provisioning fields, and force-logs-out every existing session/API
token for that tenant. The tenant row itself, its email, plan, and
Stripe subscription are all left untouched -- this is NOT delete_account
(routes/export.py), which is permanent.
Requires an explicit ``{"confirm": true}`` body, matching admin_restart''s
own confirmation pattern above.'
operationId: admin_reset_tenant_provisioning_admin_tenants__tenant_id__reset_provisioning_post
parameters:
- name: tenant_id
in: path
required: true
schema:
type: string
title: Tenant Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Admin
/admin/tenants/plan:
post:
summary: Admin Set Tenant Plan
description: 'Set or revoke a tenant''s plan by account email (grant the playtester plan).
The ``playtester`` plan is unpaid Pro entitlements with usage still bounded.
Body: ``{"email": ..., "plan": "playtester"|"free"|"standard"|"pro",
"expires_at": "YYYY-MM-DD" | null, "is_internal": false, "confirm": true}``.
``expires_at`` is only for a playtester (omitted keeps its current end date;
null clears it). ``is_internal`` may only be ``false``: it clears the staff
flag when moving a staff account to playtester and is never set here.
Without ``confirm`` nothing is written and the response says what would
change (``applied`` is false); with it the change is applied, idempotent and
audited. The response carries the plan label and any warning (a staff flag
that still exempts the tenant, a tenant with no database yet). A playtester
is refused with 409, preview included, when its database is in a Neon pool
project other tenants use: the message says to reset its provisioning first,
after which its next database is created in a project of its own.
Hosted operator only (admin session + admin password), like
reset-provisioning. See ``meridian/tenant_plan_admin.py``.'
operationId: admin_set_tenant_plan_admin_tenants_plan_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Admin
/admin/snapshot:
get:
summary: Download Snapshot
description: Download the current DB as a SQLite snapshot file.
operationId: download_snapshot_admin_snapshot_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Admin
/admin/waitlist:
get:
summary: Admin Waitlist Page
description: Admin waitlist management page — shows signups, tenant stats, approve/delete buttons.
operationId: admin_waitlist_page_admin_waitlist_get
responses:
'200':
description: Successful Response
content:
text/html:
schema:
type: string
tags:
- Admin
/admin/waitlist/{entry_id}:
delete:
summary: Admin Delete Waitlist Entry
description: Delete a waitlist entry by id. Admin only.
operationId: admin_delete_waitlist_entry_admin_waitlist__entry_id__delete
parameters:
- name: entry_id
in: path
required: true
schema:
type: string
title: Entry Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Admin Delete Waitlist Entry Admin Waitlist Entry Id Delete
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Admin
/admin/blog/posts:
get:
summary: List Blog Posts Admin
operationId: list_blog_posts_admin_admin_blog_posts_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
items:
additionalProperties: true
type: object
type: array
title: Response List Blog Posts Admin Admin Blog Posts Get
tags:
- Admin
post:
summary: Upsert Blog Post Admin
operationId: upsert_blog_post_admin_admin_blog_posts_post
requestBody:
content:
application/json:
schema:
additionalProperties: true
type: object
title: Body
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Upsert Blog Post Admin Admin Blog Posts Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Admin
/admin/blog/posts/{post_id}:
get:
summary: Get Blog Post Admin
operationId: get_blog_post_admin_admin_blog_posts__post_id__get
parameters:
- name: post_id
in: path
required: true
schema:
type: string
title: Post Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Get Blog Post Admin Admin Blog Posts Post Id Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Admin
delete:
summary: Delete Blog Post Admin
operationId: delete_blog_post_admin_admin_blog_posts__post_id__delete
parameters:
- name: post_id
in: path
required: true
schema:
type: string
title: Post Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Delete Blog Post Admin Admin Blog Posts Post Id Delete
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Admin
/admin/blog/posts/{post_id}/publish:
post:
summary: Publish Blog Post Admin
operationId: publish_blog_post_admin_admin_blog_posts__post_id__publish_post
parameters:
- name: post_id
in: path
required: true
schema:
type: string
title: Post Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Publish Blog Post Admin Admin Blog Posts Post Id Publish Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Admin
/admin/blog/posts/{post_id}/unpublish:
post:
summary: Unpublish Blog Post Admin
operationId: unpublish_blog_post_admin_admin_blog_posts__post_id__unpublish_post
parameters:
- name: post_id
in: path
required: true
schema:
type: string
title: Post Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Unpublish Blog Post Admin Admin Blog Posts Post Id Unpublish Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Admin
/admin/blog/generate-draft:
post:
summary: Generate Blog Draft
description: 'Build a draft from recent shipped activity (no AI call). Returns
``{title, body_md}`` for the editor — does NOT persist.'
operationId: generate_blog_draft_admin_blog_generate_draft_post
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Generate Blog Draft Admin Blog Generate Draft Post
tags:
- Admin
/admin/__error_test:
get:
summary: Trigger Test Error
description: 'Force an error response to exercise the 5xx counter + admin alerting.
Gated by ``MERIDIAN_ENABLE_ERROR_TEST=1`` so it only exists on preview /
staging — never on prod. ``kind=exception`` (default) raises an unhandled
Exception so the middleware logs the traceback and synthesizes a 500.
``kind=500`` returns a raw HTTPException(500) so the middleware records
the response status without going through the exception path.'
operationId: trigger_test_error_admin___error_test_get
parameters:
- name: kind
in: query
required: false
schema:
type: string
default: exception
title: Kind
responses:
'200':
description: Successful Response
content:
application/json:
schema:
title: Response Trigger Test Error Admin Error Test Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Admin
/api/admin/changelog-entries:
post:
summary: Api Create Changelog Entry
description: 'Admin-only: create a new changelog entry.'
operationId: api_create_changelog_entry_api_admin_changelog_entries_post
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Api Create Changelog Entry Api Admin Changelog Entries Post
tags:
- Admin
/api/admin/changelog-entries/{entry_id}:
patch:
summary: Api Update Changelog Entry
description: 'Admin-only: update a changelog entry.'
operationId: api_update_changelog_entry_api_admin_changelog_entries__entry_id__patch
parameters:
- name: entry_id
in: path
required: true
schema:
type: string
title: Entry Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Api Update Changelog Entry Api Admin Changelog Entries Entry Id Patch
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Admin
delete:
summary: Api Delete Changelog Entry
description: 'Admin-only: delete a changelog entry.'
operationId: api_delete_changelog_entry_api_admin_changelog_entries__entry_id__delete
parameters:
- name: entry_id
in: path
required: true
schema:
type: string
title: Entry Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Api Delete Changelog Entry Api Admin Changelog Entries Entry Id Delete
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Admin
/admin/login:
get:
summary: Admin Login Page
description: Admin password gate for the /admin panel.
operationId: admin_login_page_admin_login_get
responses:
'200':
description: Successful Response
content:
text/html:
schema:
type: string
tags:
- Admin
post:
summary: Admin Login Post
description: Validate admin password and set signed cookie.
operationId: admin_login_post_admin_login_post
responses:
'200':
description: Successful Response
content:
application/json:
schema:
title: Response Admin Login Post Admin Login Post
tags:
- Admin
/admin:
get:
summary: Admin Dashboard
description: Admin dashboard — restricted to MERIDIAN_ADMIN_EMAILS + optional password.
operationId: admin_dashboard_admin_get
responses:
'200':
description: Successful Response
content:
text/html:
schema:
type: string
tags:
- Admin
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError