Reference
API reference
The Machinaut control-plane HTTP API, grouped by area. Each route lists its status and its auth. It mirrors the endpoint map the control plane's API service serves at GET /.
Authentication
# Machine callers (the shipper, your approval proxy). Checked first.
Authorization: Bearer mk_live_… # or: x-api-key: mk_live_…
# Browser callers (the console). A session cookie from signup or login.
Cookie: mc_session=…| Auth | Meaning |
|---|---|
| Bearer | A machine API token (mk_…), project- or tenant-scoped, minted with POST /v1/tokens. The shipper and your approval proxy use it. |
| Session | A browser session cookie (mc_session). Session-only routes are out of reach for a machine credential. |
| Session · owner | Also re-checks owner membership on every call. |
| SCIM bearer | A per-org provisioning credential (scim_…). It reaches /scim/v2/… only. |
| Publish token | A mint-only credential (mp_…), pinned to one project. It reaches POST /v1/publish/shares only; every other route answers it 401. See CI publish tokens. |
| Public | No auth: the health probe, the OIDC start and callback, and a share link’s public read. |
| Internal | Probes that are not exposed through the Ingress at all. |
:param segments are path parameters. A GET | PUT cell means the same path serves both verbs.
Health and ops
| Endpoint | Description | Status | Auth |
|---|---|---|---|
GET /healthz | Liveness: the process is up. | Shipped | Public |
GET /readyz | Readiness: 200 when the backing store is reachable, 503 when not. | Shipped | Internal |
GET /metrics | Prometheus metrics: request counts and latency. | Shipped | Internal |
Unauthenticated probes. Readiness and metrics are internal and never routed through the Ingress.
Ingest
| Endpoint | Description | Status | Auth |
|---|---|---|---|
POST /v1/events | Ingest a shipped session (NDJSON manifest and records). | Shipped | Bearer |
The session_ship@1 receiver. The full wire format is in the ingest contract.
Explorer and sessions
| Endpoint | Description | Status | Auth |
|---|---|---|---|
GET /v1/projects | List a tenant's projects. | Shipped | Bearer / session |
GET /v1/projects/:project_id/sessions | List a project's sessions. | Shipped | Bearer / session |
GET /v1/projects/:project_id/sessions/:session_id | A session’s chain projection and report, plus its governed-run attestations[] with the verification display (beta). | Shipped | Bearer / session |
Read the hosted record: projects, sessions, and a session’s Lodestar chain projection and report.
Sharing
| Endpoint | Description | Status | Auth |
|---|---|---|---|
POST /v1/projects/:project_id/sessions/:session_id/shares | Make a share link. | Shipped | Session |
GET /v1/projects/:project_id/sessions/:session_id/shares | List a session's share links. | Shipped | Session |
DELETE /v1/shares/:id | Revoke a share link. | Shipped | Session |
POST /v1/publish/shares | Make a public, expiring share link from CI. Mint-only publish token (mp_…); gated by the session’s recorded sensitivity ceiling and age. | Beta | Publish token |
GET /v1/publish-tokens | List CI publish tokens (never the secret). | Beta | Session · owner |
POST /v1/publish-tokens | Mint a CI publish token pinned to one project. The secret is shown once. | Beta | Session · owner |
DELETE /v1/publish-tokens/:id | Revoke a publish token and, by default, its live links. | Beta | Session · owner |
GET /v1/shares/:token | Public read: a shared session’s chain and report, plus its attestations[] (beta). No auth. | Shipped | Public |
Make and revoke share links. The public read needs no auth. Managing links needs a browser session.
Governance summary and attestations
| Endpoint | Description | Status | Auth |
|---|---|---|---|
GET /v1/projects/:project_id/sessions/:session_id/governance | governance_summary@1: the facts a merge gate evaluates. Facts only, never a verdict. | Beta | Bearer / session |
POST /v1/projects/:project_id/sessions/:session_id/attestations | Attestation intake: the Sigstore bundle your CI signed (up to 256 KiB, 50 per session). Verified, stored as received, and displayed. | Beta | Bearer / session |
GET /v1/projects/:project_id/attestation-identity | The project’s pinned signer identity (issuer, workflow and refs), or null. | Beta | Bearer / session |
PUT /v1/projects/:project_id/attestation-identity | Pin the signer identity. Exact match, no regex. refs/pull/*/merge is the one wildcard. Audited. | Beta | Session · owner |
See the governance summary and the attestation gate. Machinaut serves facts and displays verification. It never signs and never issues a merge verdict.
Calibration
| Endpoint | Description | Status | Auth |
|---|---|---|---|
GET /v1/projects/:project_id/calibration | Project calibration: the latest pass per session. | Beta | Bearer / session |
GET /v1/projects/:project_id/sessions/:session_id/calibration | Session calibration passes. | Beta | Bearer / session |
Lodestar OSS computes calibration (ECE and Brier). Machinaut charts it per session and rolls it up per project.
Sentinels
| Endpoint | Description | Status | Auth |
|---|---|---|---|
GET /v1/projects/:project_id/sentinels | Sentinel rollup across a project’s sessions. | Beta | Bearer / session |
GET /v1/projects/:project_id/sessions/:session_id/sentinels | Session sentinel alerts. | Beta | Bearer / session |
Sentinel alerts come from Lodestar OSS. Machinaut lists them per session and project.
Fleet, overview and audit
| Endpoint | Description | Status | Auth |
|---|---|---|---|
GET /v1/overview | Org overview: sessions per day, held rate, calibration health, sentinel feed, top agents. | Beta | Bearer / session |
GET /v1/search | Full-text and identifier search over the events the explorer shows for your org. Params: q, project_id, kind, from, to, limit, cursor. | Beta | Bearer / session |
GET /v1/audit | Audit log: approve, deny, run and block decisions with retained proof. ?format=csv|ndjson exports it. | Beta | Bearer / session |
GET /v1/fleet | The multi-org health map across every Team or Enterprise org you govern. Session-only, because an API token is single-tenant. Free orgs come back in excludedOrgs. spend and drift are null because neither is built. | Beta | Session |
/v1/overview and /v1/audit are scoped to one org. /v1/fleet spans the orgs you are already a member of and adds no reach beyond that.
Policies
| Endpoint | Description | Status | Auth |
|---|---|---|---|
GET /v1/policies | Active (signed) policy snapshot, read-only. | Beta | Bearer / session |
GET | PUT /v1/policies/draft | The team’s unsigned working draft. | Beta | Bearer / session |
POST /v1/policies/draft/impact | Indicative flip simulation. Best-effort. The authoritative dry run is local. | Beta | Bearer / session |
GET /v1/policies/draft/export | Export the draft as unsigned canonical Policy JSON to sign and deploy. | Beta | Bearer / session |
Read the active signed policy and edit the unsigned draft. You sign and deploy the policy locally. The cloud holds only the unsigned draft.
Approvals
| Endpoint | Description | Status | Auth |
|---|---|---|---|
POST /v1/approvals | announce: park a hold (bare ApprovalRequest or wrapper). | Beta | Bearer |
POST /v1/approvals/:project_id | announce with the project in the path. | Beta | Bearer |
GET /v1/approvals/inbox | Approval inbox: holds with status and a resolution summary. | Beta | Bearer / session |
POST /v1/approvals/:project_id/:request_id/resolve | Record a signed Approve or Deny, or one vote on a quorum hold. Without a signature the hosted service returns 409 no_signing_key. | Beta | Bearer / session |
GET /v1/approvals/:project_id/:request_id/binding | The hold’s binding, as Lodestar’s approvalRepresentation. Advisory. | Beta | Bearer / session |
GET /v1/approvals/:project_id/:request_id/quorum | M-of-N progress: your host’s quorum record, advisory approvers_so_far, and unverified relayed votes. | Beta | Bearer / session |
POST /v1/approvals/:project_id/:request_id/votes/reopen | Re-open a refused managed vote. Audited. Applies only where a managed key exists, and none does on the hosted service. | Beta | Session · owner |
GET | PUT /v1/approvals/roster | Optional roster mirror, to show who has not voted. Your pinned keys stay the trust root. | Beta | Bearer / session |
GET /v1/approvals/:project_id/:request_id | fetch: the untrusted ApprovalResolution, or 404. | Beta | Bearer |
DELETE /v1/approvals/:project_id/:request_id | consume: spend the resolution (tombstoned). | Beta | Bearer |
The relay (announce, fetch, consume) and the write-path (inbox, resolve). Full semantics are in the approval relay contract.
Auth
| Endpoint | Description | Status | Auth |
|---|---|---|---|
POST /v1/auth/signup | Email and password signup, returns a session cookie. | Shipped | Public |
POST /v1/auth/login | Email and password login, returns a session cookie. | Shipped | Public |
POST /v1/auth/logout | End the session ({ all: true } ends every session) and clear the cookie. | Shipped | Session |
POST /v1/auth/switch-org | Switch the active org for a multi-org user. Returns the me payload for the new org. | Shipped | Session |
GET /v1/auth/me | Current user and org. | Shipped | Session |
Email and password, plus OIDC SSO (beta). SAML, email sign-in links and password reset: Planned
API tokens
| Endpoint | Description | Status | Auth |
|---|---|---|---|
GET /v1/tokens | List the tenant's API tokens. | Shipped | Session |
POST /v1/tokens | Mint a project or tenant API token. The secret shows once. | Shipped | Session |
DELETE /v1/tokens/:id | Revoke an API token. | Shipped | Session |
Mint and revoke the machine tokens that authenticate ingest and the relay. Session-only, so a leaked machine key cannot mint another.
Org and team
| Endpoint | Description | Status | Auth |
|---|---|---|---|
GET /v1/org/members | Org roster: members and roles. | Beta | Session |
PATCH /v1/org/members/:id | Change a member's role (owner or member). | Beta | Session · owner |
DELETE /v1/org/members/:id | Remove a member. | Beta | Session · owner |
POST /v1/org/invites | Invite a teammate. Returns a link to copy. No email is sent. | Beta | Session · owner |
GET /v1/org/invites | Pending invites with their links. | Beta | Session · owner |
DELETE /v1/org/invites/:id | Revoke a pending invite. | Beta | Session · owner |
GET /v1/org/invites/lookup/:token | Preview an invite before accepting. | Beta | Session |
POST /v1/org/invites/accept | Redeem an invite. Bound to the invited email. | Beta | Session |
GET /v1/org/audit | Append-only admin log (member, role, API-token, publish-token, share, SSO, SCIM and domain entries). Filter with ?action= or ?actor= (an email, a user id, or one of user, scim, ci, system); page with ?cursor= and next_cursor in the response. ?format=csv or ndjson downloads the filtered log instead of a page (owner-only, at most 10,000 rows; the x-audit-truncated: true response header marks a capped export). Not signed or hash-chained. | Beta | Session · owner |
GET /v1/org/settings | Enforce-SSO, the plan and its capabilities, and key custody (customer_held at every tier). | Beta | Session · owner |
PATCH /v1/org/settings | Toggle enforce-SSO (Team and Enterprise). Managed custody returns 409 custody_managed_unavailable: Planned | Beta | Session · owner |
GET /v1/org/seats | Seat counts and the org’s plan. No metering or billing exists. | Beta | Session · owner |
Members, roles and invites. Invites are links you copy. No email is sent. Email delivery: Planned Session-only. Role and invite changes are owner-only.
Single sign-on (OIDC)
| Endpoint | Description | Status | Auth |
|---|---|---|---|
GET /v1/org/sso | The OIDC connection (never the secret) and the callback URL for your IdP. | Beta | Session · owner |
POST /v1/org/sso | Configure the connection: discovery URL, client id and secret, group to role map. | Beta | Session · owner |
PATCH /v1/org/sso | Rotate the secret or change the role map. | Beta | Session · owner |
DELETE /v1/org/sso | Disable the org’s OIDC connection. | Beta | Session · owner |
GET /sso/:org_id/oidc/start | SP-initiated login. ?mode=test previews the claims and role without a session. | Beta | Public |
GET /sso/:org_id/oidc/callback | The OIDC redirect URI. Verifies the id_token and provisions the user on first sign-in. | Beta | Public |
Team and Enterprise. SSO decides who may sign in, never who may sign. The IdP client secret is sealed at rest (AES-256-GCM). SAML: Planned
SCIM 2.0 provisioning
| Endpoint | Description | Status | Auth |
|---|---|---|---|
GET /v1/org/scim/tokens | List the org’s SCIM bearer tokens. | Beta | Session · owner |
POST /v1/org/scim/tokens | Mint a SCIM bearer. Shown once, stored as a SHA-256 hash. | Beta | Session · owner |
POST /v1/org/scim/tokens/:id/rotate | Rotate a SCIM token, with an overlap window. | Beta | Session · owner |
DELETE /v1/org/scim/tokens/:id | Revoke a SCIM token. | Beta | Session · owner |
GET|POST|PUT|PATCH|DELETE /scim/v2/Users… | The user endpoints your IdP drives. active: false deprovisions at once. | Beta | SCIM bearer |
Enterprise only, with a live SSO connection. The /scim/v2 endpoint is enabled per organization on request: Talk to us for its base URL. Deprovisioning ends a member’s sessions and revokes their API tokens. It cannot rotate a customer-held approver key.
Verified domains
| Endpoint | Description | Status | Auth |
|---|---|---|---|
GET /v1/org/domains | List domain claims and their state. | Beta | Session · owner |
POST /v1/org/domains | Claim a domain. Returns the DNS-TXT record to publish. | Beta | Session · owner |
POST /v1/org/domains/:id/verify | Check the TXT proof and mark the domain verified. | Beta | Session · owner |
PATCH /v1/org/domains/:id | Toggle auto-join. Needs a verified domain. Default off. | Beta | Session · owner |
DELETE /v1/org/domains/:id | Remove a domain claim. | Beta | Session · owner |
Claiming and verifying work on any plan. Auto-join needs Team or Enterprise, matches the exact domain only, and admits a user only when your IdP asserts email_verified.
Sample project
| Endpoint | Description | Status | Auth |
|---|---|---|---|
GET /v1/demo | Whether the sample project is seeded (fingerprint-checked). | Shipped | Session |
POST /v1/demo/seed | Load a labelled sample: a chain, a hold and an audit trail. | Shipped | Session |
DELETE /v1/demo | Remove the sample project. | Shipped | Session |
A labelled sample project for a new org. See Connect your agent. Session-only, so a machine credential can never seed or wipe a tenant.
This map comes from the running control plane
GET /, with each route’s status inline. It is not exposed on console.machinaut.ai, so this page mirrors it. The server is the source of truth. The two write contracts have their own pages: the ingest contract and the approval relay contract.