Skip to main content

Ops

Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: ops · 16 operations

GET /health​

Health Check

Backward-compatible health endpoint (compose healthcheck). Equivalent to readiness.

The status/database keys are unchanged. The response additionally carries a toolchain block (FMT-1.3) reporting the bundled-toolchain verdict this runtime booted with: status (ok / degraded / failed), whether the deployment enforced the toolchain, how many hard-required tools there are, how many resolved, and the keys of any that are missing. Availability only — resolved paths, the optional tools and the exact third-party versions stay on the platform-admin GET /v1/ops/toolchain, because this endpoint is unauthenticated.

The document_store block (COA-5.9, #7085) reports the store as a dependency: status (ok; degraded when running on the db fallback; unavailable when the store did not answer its last check), the active backend and whether a fallback is in effect. The check is cached for 30 seconds; error details and settings stay on the platform-admin GET /v1/ops/document-store. tenant_buckets_unavailable (COA-5.15, #7092) is how many tenants' own buckets are down — status is degraded when any is; which tenants, and why, are on GET /v1/ops/document-store.

The HTTP status reflects database readiness only: an enforcing deployment cannot serve at all with a required tool missing (startup refuses), a non-enforcing one is degraded deliberately, and a store outage fails the writes that need it without making the server unready.

Operation id: health_check_health_get

Responses

StatusDescriptionBody
200Successful response for health check.application/json any

GET /livez​

Liveness

Liveness probe: confirms the process is up. Deliberately does not check the database.

Operation id: liveness_livez_get

Responses

StatusDescriptionBody
200Successful response for liveness.application/json any

GET /readyz​

Readiness

Readiness probe: 200 when the database is reachable, 503 otherwise.

Operation id: readiness_readyz_get

Responses

StatusDescriptionBody
200Successful response for readiness.application/json any

GET /v1/admin/document-store​

Admin Document Store

The super-admin console's view of GET /v1/ops/document-store (COA-5.9, #7085).

Operation id: admin_document_store_v1_admin_document_store_get

Parameters

NameInTypeRequiredDescription
limitqueryintegernoHow many tenantBuckets to list (by tenant slug). At most 1,000; tenantBucketsTruncated says whether more exist.
X-Admin-Sessionheaderstring or nullnoHeader parameter: X Admin Session.
admin_sessioncookiestring or nullnoCookie parameter: admin session.

Responses

StatusDescriptionBody
200Successful response for admin document store.application/json DocumentStoreStatus
422Validation Errorapplication/json HTTPValidationError

POST /v1/admin/document-store/test​

Admin Test Document Store

The super-admin console's view of POST /v1/ops/document-store/test (COA-5.9, #7085).

Operation id: admin_test_document_store_v1_admin_document_store_test_post

Parameters

NameInTypeRequiredDescription
X-Admin-Sessionheaderstring or nullnoHeader parameter: X Admin Session.
admin_sessioncookiestring or nullnoCookie parameter: admin session.

Responses

StatusDescriptionBody
200Successful response for admin test document store.application/json DocumentStoreProbeResult
422Validation Errorapplication/json HTTPValidationError

GET /v1/ops/backups​

Ops Backups

Latest backup status (from RC1-1.3 manifests). Platform-admin only.

Operation id: ops_backups_v1_ops_backups_get

Parameters

NameInTypeRequiredDescription
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for ops backups.application/json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/ops/dashboard​

Ops Dashboard

A minimal, self-contained HTML ops dashboard. Platform-admin only.

The page server-renders the current metrics + backup status and polls /v1/ops/status for live refresh. It is intentionally dependency-free (no external JS/CSS) so it works in locked-down environments and never reaches out to a CDN.

Operation id: ops_dashboard_v1_ops_dashboard_get

Parameters

NameInTypeRequiredDescription
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for ops dashboard.text/html string
422Validation Errorapplication/json HTTPValidationError

GET /v1/ops/document-migration​

Document Migration Status

The document migration's status (COA-5.8, #7084). Platform-admin only.

Whether this instance is running a step, the last run's report or error, the active document store backend, and every checkpoint (per scope, step and source: the last key finished, running totals and when the step completed).

Operation id: document_migration_status_v1_ops_document_migration_get

Parameters

NameInTypeRequiredDescription
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for document migration status.application/json any
422Validation Errorapplication/json HTTPValidationError

POST /v1/ops/document-migration​

Start Document Migration

Start one step of the document migration in the background (COA-5.8, #7084). Platform-admin only.

The copy step writes each database-held import source, frozen schema and export artifact to the document store, verifies it and links it; the purge step (purgeDbCopies) re-verifies each stored object and drops its database copy. Answers 202 with the run's status; follow it with GET /v1/ops/document-migration.

Operation id: start_document_migration_v1_ops_document_migration_post

Parameters

NameInTypeRequiredDescription
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for start document migration.

Responses

StatusDescriptionBody
202Successful response for start document migration.application/json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/ops/document-store​

Ops Document Store

The active document store: backend, settings, health and usage (COA-5.9, #7085). Platform-admin only.

Settings come from the server environment and are read-only here; credentials are never returned — credentials only says whether static keys or boto3's default chain are used.

Operation id: ops_document_store_v1_ops_document_store_get

Parameters

NameInTypeRequiredDescription
limitqueryintegernoHow many tenantBuckets to list (by tenant slug). At most 1,000; tenantBucketsTruncated says whether more exist.
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for ops document store.application/json DocumentStoreStatus
422Validation Errorapplication/json HTTPValidationError

POST /v1/ops/document-store/test​

Ops Test Document Store

Test the document store: write, read back and delete a probe object (COA-5.9, #7085). Platform-admin only.

Answers 200 whether or not the test passed; ok and each step's error say what failed.

Operation id: ops_test_document_store_v1_ops_document_store_test_post

Parameters

NameInTypeRequiredDescription
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for ops test document store.application/json DocumentStoreProbeResult
422Validation Errorapplication/json HTTPValidationError

GET /v1/ops/import-export​

Ops Import Export

Import/export pipeline observability aggregates (IXH-6.6). Platform-admin only.

The full operator view of the three metric families — per-stage duration histograms and byte totals, terminal job totals keyed by adapter/target × format × outcome, and failure counters keyed by the IXH-6.4 taxonomy code — plus the complete documented tag set every key is drawn from, and the export health summary (X8) — success and failure rate, per-target failures, the whole-job p95 and the failure-rate alert. Aggregates are in-process: per replica, reset on restart (same posture as /v1/ops/metrics); durable per-job timing evidence lives in each job's PHASE_TIMING events in the shared job store.

Operation id: ops_import_export_v1_ops_import_export_get

Parameters

NameInTypeRequiredDescription
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for ops import export.application/json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/ops/mcp-discovery-sweep​

Ops Mcp Discovery Sweep

MCP re-discovery sweep health (MCAT-5.4, #3676). Platform-admin only.

Reports the sweep's settings (enabled, tick, cadence, concurrency cap, per-endpoint timeout), the most recent run, the recent runs newest first, and their totals. Each run carries its timing and tick counters (due, dispatched, coalesced, enqueue failures) and outcome counts — checked, changed, unchanged, failed, in flight — aggregated from the discovery jobs that run created, so they reconcile with the job log by construction. See :mod:app.mcp_sweep_status.

Operation id: ops_mcp_discovery_sweep_v1_ops_mcp_discovery_sweep_get

Parameters

NameInTypeRequiredDescription
limitqueryintegernoHow many recent sweep runs to return, newest first.
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for ops mcp discovery sweep.application/json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/ops/metrics​

Ops Metrics

Operational request metrics (request rate, error rate, latency). Platform-admin only.

Operation id: ops_metrics_v1_ops_metrics_get

Parameters

NameInTypeRequiredDescription
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for ops metrics.application/json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/ops/status​

Ops Status

Combined metrics + backup status — one call backing the dashboard. Platform-admin only.

Operation id: ops_status_v1_ops_status_get

Parameters

NameInTypeRequiredDescription
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for ops status.application/json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/ops/toolchain​

Ops Toolchain

Bundled toolchain packaging & availability + sandbox posture. Platform-admin only.

Reports every declared external tool (buf, tsp, smithy, drafter, amf, asyncapi, rover), its pinned version, and whether its binary resolves in this runtime — the "format unavailable" signal a missing tool produces (MFI-5.2). Each tool additionally carries required (is it a hard dependency of this runtime?) and gated_formats (which registered import/export formats vanish without it), so the answer to "what did this deployment lose?" is on the same response as "what is missing?" (FMT-1.3). With ?verify=true each available tool is additionally invoked with its version probe to confirm it actually runs. The sandbox block reports the active security/resource posture (MFI-5.3) every tool subprocess runs under (no-network default, rlimit clamps, input/output caps).

Operation id: ops_toolchain_v1_ops_toolchain_get

Parameters

NameInTypeRequiredDescription
verifyquerybooleannoAlso invoke each available tool's version probe to confirm it runs (slower — spawns one subprocess per available tool).
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for ops toolchain.application/json any
422Validation Errorapplication/json HTTPValidationError

Schemas used​

DocumentMigrationRequest​

One step of the document migration to start.

PropertyTypeRequiredDescription
purgeDbCopiesbooleannoRun the purge step (drop database copies whose stored object verifies) instead of the copy step.
dryRunbooleannoReport what the step would do; write nothing.
tenantIdstring or nullnoOnly this tenant (UUID); every tenant when omitted.
sourcesarray of enum "adapter_source", "import_snapshot", "frozen_schema", "export_artifact" or nullnoOnly these sources; every source when omitted.
ratenumbernoMost rows per second; 0 for no limit.
batchSizeintegernoRows per page and checkpoint.
workersintegernoRows processed in parallel.

DocumentStoreProbeResult​

The outcome of writing, reading back and deleting one probe object.

PropertyTypeRequiredDescription
okbooleanyesTrue when every step succeeded.
backendstringyesBackend.
checkedAtnumberyesWhen the test finished (epoch seconds).
durationMsnumberyesDuration Ms.
stepsarray of DocumentStoreProbeStepyesSteps.

DocumentStoreStatus​

The active document store: settings (never credentials), health and usage.

PropertyTypeRequiredDescription
backendstringyesThe backend the server runs on: db, s3 or filesystem.
configuredBackendstringyesThe backend APIOME_DOCUMENT_STORE names.
fallbackbooleanyesTrue when startup fell back to db (APIOME_DOCUMENT_STORE_FALLBACK=db).
fallbackReasonstring or nullnoWhy the configured backend was not usable (redacted).
backendsarray of stringyesEvery backend this server supports.
bucketstring or nullnos3: the bucket.
prefixstringyesThe folder every object key starts with ('' for none).
regionstring or nullnos3: the signing region.
endpointUrlstring or nullnos3: the service URL; null for AWS.
addressingStylestring or nullnos3: auto, path or virtual.
pathstring or nullnofilesystem: the storage directory.
encryptionstring or nullnos3: none, sse-s3 or sse-kms.
kmsKeyIdstring or nullnos3 with sse-kms: the key; null for the bucket default.
credentialsenum "static", "default-chain" or nullnos3: 'static' (keys in the environment) or 'default-chain' (boto3's chain / IAM role).
presignTtlSecondsinteger or nullnos3: default lifetime of a download link.
maxObjectBytesinteger or nullnodb: the largest object accepted.
healthDocumentStoreHealthyesHealth.
usageDocumentStoreUsage or nullnoNull when the document index cannot be read.
tenantBucketsAllowedbooleannoWhether tenants may use their own bucket (APIOME_DOCUMENT_STORE_ALLOW_TENANT_BUCKETS).
tenantBucketsarray of DocumentStoreTenantBucketnoTenants that have configured their own bucket, with its health.
tenantBucketsTruncatedbooleannoTrue when more tenants have a bucket than limit listed.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.