The web UI exposes a REST API for managing collections, documents, and retrieving metrics. All endpoints return JSON responses.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sohzm/jasonisnthappy/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
When the web server is running, all endpoints are available at:Authentication
The current implementation does not include authentication. The API is intended for local development and trusted environments.For production deployments, use a reverse proxy with authentication (Basic Auth, OAuth, API keys) in front of the web server.
Health and metrics
Health check
Check if the server is running.Server status, always returns
"ok"Get metrics
Retrieve current database metrics.Total number of transactions started
Total number of transactions committed
Total number of transactions aborted
Currently active transactions
Percentage of transactions committed (0.0 to 1.0)
Number of transaction conflicts detected
Cache hit rate percentage (0.0 to 1.0)
Number of cache hits
Number of cache misses
Current number of dirty pages in cache
Total pages allocated
Total pages freed
Number of WAL writes
Total bytes written to WAL
Number of checkpoints completed
Total documents inserted
Total documents updated
Total documents deleted
Total documents read
Number of I/O errors encountered
Collections
List collections
Retrieve all collection names, sorted alphabetically.Create collection
Create a new collection.Name of the collection to create. Must contain only letters, numbers, and underscores.
Always returns
"created"Name of the created collection
Rename collection
Rename an existing collection.Current name of the collection
New name for the collection
Always returns
"renamed"Previous collection name
New collection name
Delete collection
Delete a collection and all its documents.Name of the collection to delete
Always returns
"deleted"Name of the deleted collection
Deleting a collection is permanent and cannot be undone. All documents in the collection will be deleted.
Documents
List documents
Retrieve all documents in a collection.Name of the collection
Create document
Insert a new document into a collection.Name of the collection
JSON document to insert. The
_id field will be automatically generated if not provided.The generated document ID (ULID format)
Update document
Update an existing document by ID.Name of the collection
Document ID (ULID)
Updated document content. The
_id field cannot be changed.Always returns
"updated"Updates replace the entire document. To update specific fields, send the complete document with only the desired fields changed.
Delete document
Delete a document by ID.Name of the collection
Document ID to delete
Always returns
"deleted"Error responses
All error responses follow this format: 404 Not FoundExample usage
Using curl
Using JavaScript
Using Python
Next steps
- Web UI overview - Learn about the dashboard interface
- Metrics - Understanding database metrics
- Observability - Advanced monitoring patterns