API Reference
MikroPlan API mode exposes a compact HTTP API for the browser app and lightweight automation.
The live OpenAPI document is served from:
/api/openapi.jsonSystem
Section titled “System”GET /api/health
Section titled “GET /api/health”Returns service health, timestamp, and whether auth is enabled.
GET /config.json
Section titled “GET /config.json”Returns browser runtime config:
- API base URL
- auth mode and enabled flag
- public auth route paths used by the browser app
- runtime mode
GET /api/auth/me
Section titled “GET /api/auth/me”Returns the current auth state. When auth is enabled and no valid cookie is present, the endpoint returns authenticated: false rather than a 401.
POST /api/auth/magic-link
Section titled “POST /api/auth/magic-link”Requests a MikroAuth magic link.
{}When auth is disabled for local mode, this endpoint returns 202 with a local-mode message and does not send email.
POST /api/auth/verify
Section titled “POST /api/auth/verify”Verifies a magic-link token and returns access credentials.
{ "token": "token-from-link"}The response sets an HttpOnly mikroplan_access_token cookie for browser collaboration streams.
POST /api/auth/logout
Section titled “POST /api/auth/logout”Clears the auth cookie.
Workspace
Section titled “Workspace”GET /api/workspace
Section titled “GET /api/workspace”Loads the current workspace.
The response includes:
X-Workspace-RevisionETag
PUT /api/workspace
Section titled “PUT /api/workspace”Replaces the workspace snapshot.
Send the latest revision with X-Workspace-Revision or If-Match. If the revision is stale, the API returns 409 with the current workspace.
Movement
Section titled “Movement”POST /api/cards/:cardId/move
Section titled “POST /api/cards/:cardId/move”Moves a card to a target column and position.
POST /api/columns/:columnId/move
Section titled “POST /api/columns/:columnId/move”Moves a column to a target position.
Events
Section titled “Events”GET /api/events
Section titled “GET /api/events”Opens a Server-Sent Events stream.
The stream sends a connection event and workspace update events containing the latest revision and source client ID.