title: Docs API version: 1.0 date: 2026-10-25 author: Core Team status: Active
Web-based API documentation served by the server. Supports both static HTML and WASM-based interactive documentation.
GET /docAuth: Not required
Redirect to WASM documentation.
curl -L http://localhost:3002/doc
301 Redirect → /doc-wasm
GET /doc-wasmAuth: Not required
Serve WASM-based interactive documentation.
curl http://localhost:3002/doc-wasm
HTML page with WASM documentation viewer.
GET /doc-wasm/*fileAuth: Not required
Serve WASM binary files and static assets for documentation.
| Parameter | Type | Description |
|---|---|---|
file |
string | File path (e.g., "pkg/md_wasm_bg.wasm") |
curl http://localhost:3002/doc-wasm/pkg/md_wasm_bg.wasm --output md_wasm_bg.wasm
Binary file with appropriate MIME type:
- .wasm → application/wasm
- .js → application/javascript
- .css → text/css
- .md → text/markdown
docs_v1.0/doc_wasm/docs_v1.0/API_WORKSPACE/ and docs_v1.0/CLI_WORKSPACE/| Variable | Default | Description |
|---|---|---|
MOMENTRY_DOCS_DIR |
{binary_dir}/docs_v1.0/doc_wasm |
Documentation root directory |
.. or //MOMENTRY_DOCS_DIR| Version | Date | Changes |
|---|---|---|
| 1.0 | 2026-10-25 | Initial documentation |