Instance administration
The operator back office: every workspace on this instance with its metadata and plan, the plan assignment, the append-only trail of operator actions, and the inbox of reports people have sent (see Feedback). Metadata only, with that one exception: the operator of a hosted instance is a data processor, so these routes cannot return page titles, page contents or comments, and a report is readable here only because somebody wrote and sent it to the operator. Session-only, and restricted to the operators named in OPERATORS.
7 operations. Every path is relative to the instance origin; every response body is JSON unless stated. The endpoint descriptions below come straight from the server’s own route table. See API for authentication, errors and pagination.
GET /api/v1/admin/workspaces
Every workspace on this instance with its billing-relevant METADATA: name, slug, creation date, member count, live page count, stored bytes, plan and last activity. Newest first, keyset-paginated, optionally narrowed by name/slug or plan. Carries no page titles, no bodies and no comments; the operator is a processor, not a reader (GDPR Art. 28). Instance operator only (OPERATORS); everybody else gets 403, a workspace owner included. Session-only twice over: the route sits outside /workspaces/{workspaceId}, which tokens/scopes.ts classifies session-only, and the operator guard refuses a token-authenticated request outright.
listAdminWorkspaces · token scope: session only
Query parameters
cursor· string · length 1–∞limit· integer · 1–100q· string · length 1–200plan·"free"|"pro"|"business"|"enterprise"|"self_hosted"|"team"Show only workspaces on this plan. Deprecated spellings are accepted for compatibility and resolved before anything is stored or answered:teammeanspro, andself_hostedmeansenterprise. The deployment mode that id named was withdrawn (ADR-0024) and the id retired (ADR-0029 D1). Responses only ever spell the four live ids.
Response 200 · application/json
items· object[] · requiredid· string (uuid) · requiredslug· string · required, length 1–100name· string · requiredcreatedAt· string (date-time) · requiredmemberCount· integer · required, 0–9007199254740991pageCount· integer · required, 0–9007199254740991storageBytes· integer · required, 0–9007199254740991plan·"free"|"pro"|"business"|"enterprise"· requiredplanSince· string (date-time) | null · requiredlastActivityAt· string (date-time) | null · required
nextCursor· string | null · required
Response default · application/json
error· object · requiredcode·"bad_request"|"validation_failed"|"unauthorized"|"forbidden"|"not_found"|"conflict"|"rate_limited"|"internal"· requiredmessage· string · requiredreason· string · length 1–64params· object
GET /api/v1/admin/workspaces/{targetWorkspaceId}
One workspace in detail: the list row plus memberships per role, the owners (the billing counterparties: owners only, never the whole roster), the attachment count, and the plan limits with whichever of them it currently exceeds. Metadata only. Instance operator only (OPERATORS); everybody else gets 403, a workspace owner included. Session-only twice over: the route sits outside /workspaces/{workspaceId}, which tokens/scopes.ts classifies session-only, and the operator guard refuses a token-authenticated request outright.
getAdminWorkspace · token scope: session only
Path parameters
targetWorkspaceId· string (uuid) · required
Response 200 · application/json
id· string (uuid) · requiredslug· string · required, length 1–100name· string · requiredcreatedAt· string (date-time) · requiredmemberCount· integer · required, 0–9007199254740991pageCount· integer · required, 0–9007199254740991storageBytes· integer · required, 0–9007199254740991plan·"free"|"pro"|"business"|"enterprise"· requiredplanSince· string (date-time) | null · requiredlastActivityAt· string (date-time) | null · requiredmembersByRole· object · requiredowner· integer · required, 0–9007199254740991admin· integer · required, 0–9007199254740991member· integer · required, 0–9007199254740991guest· integer · required, 0–9007199254740991
owners· object[] · requireduserId· string (uuid) · requiredname· string · requiredemail· string (email) · requiredjoinedAt· string (date-time) · required
attachmentCount· integer · required, 0–9007199254740991limits· object · requiredstorageBytes· integer | null · requiredfileSizeBytes· integer | null · requiredmembers· integer | null · requiredguests· integer | null · requiredversionHistoryDays· integer | null · required
over·"storageBytes"|"fileSizeBytes"|"members"|"guests"|"versionHistoryDays"[] · requiredactiveProducts·"basalt"|"lithic"|"tecto"|"caldera"[] · required
Response default · application/json
error· object · requiredcode·"bad_request"|"validation_failed"|"unauthorized"|"forbidden"|"not_found"|"conflict"|"rate_limited"|"internal"· requiredmessage· string · requiredreason· string · length 1–64params· object
PUT /api/v1/admin/workspaces/{targetWorkspaceId}/plan
Assign a workspace's plan. This write makes the billing work usable before payments are wired. Idempotent: re-assigning the plan a workspace already has changes nothing and records nothing. Every real change writes an append-only workspace.plan.set entry to the operator audit trail IN THE SAME TRANSACTION, so a plan change with no record of who made it cannot exist. A downgrade never removes, hides or locks anything; it only narrows what the next write may add. Instance operator only (OPERATORS); everybody else gets 403, a workspace owner included. Session-only twice over: the route sits outside /workspaces/{workspaceId}, which tokens/scopes.ts classifies session-only, and the operator guard refuses a token-authenticated request outright.
setAdminWorkspacePlan · token scope: session only
Path parameters
targetWorkspaceId· string (uuid) · required
Request body · application/json, required
plan·"free"|"pro"|"business"|"enterprise"|"self_hosted"|"team"· required The plan to assign. Deprecated spellings are accepted for compatibility and resolved before anything is stored or answered:teammeanspro, andself_hostedmeansenterprise. The deployment mode that id named was withdrawn (ADR-0024) and the id retired (ADR-0029 D1). Responses only ever spell the four live ids.note· string · length 0–500
Response 200 · application/json
id· string (uuid) · requiredslug· string · required, length 1–100name· string · requiredcreatedAt· string (date-time) · requiredmemberCount· integer · required, 0–9007199254740991pageCount· integer · required, 0–9007199254740991storageBytes· integer · required, 0–9007199254740991plan·"free"|"pro"|"business"|"enterprise"· requiredplanSince· string (date-time) | null · requiredlastActivityAt· string (date-time) | null · requiredmembersByRole· object · requiredowner· integer · required, 0–9007199254740991admin· integer · required, 0–9007199254740991member· integer · required, 0–9007199254740991guest· integer · required, 0–9007199254740991
owners· object[] · requireduserId· string (uuid) · requiredname· string · requiredemail· string (email) · requiredjoinedAt· string (date-time) · required
attachmentCount· integer · required, 0–9007199254740991limits· object · requiredstorageBytes· integer | null · requiredfileSizeBytes· integer | null · requiredmembers· integer | null · requiredguests· integer | null · requiredversionHistoryDays· integer | null · required
over·"storageBytes"|"fileSizeBytes"|"members"|"guests"|"versionHistoryDays"[] · requiredactiveProducts·"basalt"|"lithic"|"tecto"|"caldera"[] · required
Response default · application/json
error· object · requiredcode·"bad_request"|"validation_failed"|"unauthorized"|"forbidden"|"not_found"|"conflict"|"rate_limited"|"internal"· requiredmessage· string · requiredreason· string · length 1–64params· object
PUT /api/v1/admin/workspaces/{targetWorkspaceId}/products/{product}
Activate one product for a workspace, on the plan the workspace already has, and record it in the audit trail. Idempotent: a product that is already active is left alone and nothing is recorded. Turns a product on without a workspace admin, for example for a customer the operator sets up. Deactivation is not offered.Instance operator only (OPERATORS); everybody else gets 403, a workspace owner included. Session-only twice over: the route sits outside /workspaces/{workspaceId}, which tokens/scopes.ts classifies session-only, and the operator guard refuses a token-authenticated request outright.
activateAdminWorkspaceProduct · token scope: session only
Path parameters
targetWorkspaceId· string (uuid) · requiredproduct·"basalt"|"lithic"|"tecto"|"caldera"· required
Request body · application/json, required
note· string · length 0–500
Response 200 · application/json
id· string (uuid) · requiredslug· string · required, length 1–100name· string · requiredcreatedAt· string (date-time) · requiredmemberCount· integer · required, 0–9007199254740991pageCount· integer · required, 0–9007199254740991storageBytes· integer · required, 0–9007199254740991plan·"free"|"pro"|"business"|"enterprise"· requiredplanSince· string (date-time) | null · requiredlastActivityAt· string (date-time) | null · requiredmembersByRole· object · requiredowner· integer · required, 0–9007199254740991admin· integer · required, 0–9007199254740991member· integer · required, 0–9007199254740991guest· integer · required, 0–9007199254740991
owners· object[] · requireduserId· string (uuid) · requiredname· string · requiredemail· string (email) · requiredjoinedAt· string (date-time) · required
attachmentCount· integer · required, 0–9007199254740991limits· object · requiredstorageBytes· integer | null · requiredfileSizeBytes· integer | null · requiredmembers· integer | null · requiredguests· integer | null · requiredversionHistoryDays· integer | null · required
over·"storageBytes"|"fileSizeBytes"|"members"|"guests"|"versionHistoryDays"[] · requiredactiveProducts·"basalt"|"lithic"|"tecto"|"caldera"[] · required
Response default · application/json
error· object · requiredcode·"bad_request"|"validation_failed"|"unauthorized"|"forbidden"|"not_found"|"conflict"|"rate_limited"|"internal"· requiredmessage· string · requiredreason· string · length 1–64params· object
GET /api/v1/admin/audit
The operator audit trail, newest first, optionally narrowed to one workspace. Append-only: a database trigger refuses UPDATE, DELETE and TRUNCATE, so an entry can be neither edited nor deleted by any code path, this one included. Instance operator only (OPERATORS); everybody else gets 403, a workspace owner included. Session-only twice over: the route sits outside /workspaces/{workspaceId}, which tokens/scopes.ts classifies session-only, and the operator guard refuses a token-authenticated request outright.
listAdminAudit · token scope: session only
Query parameters
cursor· string · length 1–∞limit· integer · 1–100workspaceId· string (uuid)
Response 200 · application/json
items· object[] · requiredid· string (uuid) · requiredat· string (date-time) · requiredaction·"workspace.plan.set"|"workspace.product.activate"· requiredoperatorUserId· string (uuid) · requiredoperatorEmail· string (email) · requiredworkspaceId· string (uuid) | null · requiredworkspaceSlug· string | null · requireddetail· object · required
nextCursor· string | null · required
Response default · application/json
error· object · requiredcode·"bad_request"|"validation_failed"|"unauthorized"|"forbidden"|"not_found"|"conflict"|"rate_limited"|"internal"· requiredmessage· string · requiredreason· string · length 1–64params· object
GET /api/v1/admin/feedback
The feedback inbox, newest first, optionally narrowed by status, kind or product. The one operator surface that holds user-written text, and it is not an exception to the metadata-only rule: a report is a message somebody composed and sent to the operator, having seen everything attached to it. Joins no workspace content and links nowhere into one. Instance operator only (OPERATORS); everybody else gets 403, a workspace owner included. Session-only twice over: the route sits outside /workspaces/{workspaceId}, which tokens/scopes.ts classifies session-only, and the operator guard refuses a token-authenticated request outright.
listAdminFeedback · token scope: session only
Query parameters
cursor· string · length 1–∞limit· integer · 1–100status·"open"|"closed"kind·"bug"|"idea"product·"basalt"|"lithic"|"tecto"|"caldera"
Response 200 · application/json
items· object[] · requiredid· string (uuid) · requiredat· string (date-time) · requiredkind·"bug"|"idea"· requiredstatus·"open"|"closed"· requiredmessage· string · requiredproduct·"basalt"|"lithic"|"tecto"|"caldera"| null · requiredreporter· object · requireduserId· string (uuid) · requiredname· string · requiredemail· string (email) · required
workspace· object | null · requiredid· string (uuid) · requiredname· string · required
context· object · requiredroute· string | null · requiredappVersion· string | null · requiredviewport· object | null · requiredwidth· integer · required, 0–100000height· integer · required, 0–100000
pointer·"coarse"|"fine"| null · requiredtrace· string | null · required
note· string | null · requiredclosedAt· string (date-time) | null · required
nextCursor· string | null · required
Response default · application/json
error· object · requiredcode·"bad_request"|"validation_failed"|"unauthorized"|"forbidden"|"not_found"|"conflict"|"rate_limited"|"internal"· requiredmessage· string · requiredreason· string · length 1–64params· object
PATCH /api/v1/admin/feedback/{reportId}
Close or reopen a report, and/or set the operator's own note about it. The note is never shown to the sender. Instance operator only (OPERATORS); everybody else gets 403, a workspace owner included. Session-only twice over: the route sits outside /workspaces/{workspaceId}, which tokens/scopes.ts classifies session-only, and the operator guard refuses a token-authenticated request outright.
updateAdminFeedback · token scope: session only
Path parameters
reportId· string (uuid) · required
Request body · application/json, required
status·"open"|"closed"note· string | null
Response 200 · application/json
id· string (uuid) · requiredat· string (date-time) · requiredkind·"bug"|"idea"· requiredstatus·"open"|"closed"· requiredmessage· string · requiredproduct·"basalt"|"lithic"|"tecto"|"caldera"| null · requiredreporter· object · requireduserId· string (uuid) · requiredname· string · requiredemail· string (email) · required
workspace· object | null · requiredid· string (uuid) · requiredname· string · required
context· object · requiredroute· string | null · requiredappVersion· string | null · requiredviewport· object | null · requiredwidth· integer · required, 0–100000height· integer · required, 0–100000
pointer·"coarse"|"fine"| null · requiredtrace· string | null · required
note· string | null · requiredclosedAt· string (date-time) | null · required
Response default · application/json
error· object · requiredcode·"bad_request"|"validation_failed"|"unauthorized"|"forbidden"|"not_found"|"conflict"|"rate_limited"|"internal"· requiredmessage· string · requiredreason· string · length 1–64params· object