Skip to main content
A workspace is a named collection of files and derived outputs, pinned to a domain (vocabulary for classification) and a set of access labels.

Workspace properties

When you create a workspace, you choose:
  • Name — human-readable identifier.
  • Domain — vocabulary for classification (domain_slug, e.g. "generic"). The domain determines the taxonomy labels available for document classification.
  • Access labels — a frozen subset of your organization’s label catalog (see Access labels).

The returned storage describes the byte backend: managed uses platform storage, tenant_bucket uses the organization’s configured S3 bucket, and external names a customer connection and its exclusive workspace location; callers who cannot view that connection receive null for its connection_id, provider, location, and health. External bindings require server enablement and are not generally available. Omitting storage preserves the organization default.

Original cells and normalized ledgers

When ingestion normalizes an XLSX/XLSM sheet into ledger entries, SQL also retains a separate source-grid table. The ledger table keeps its existing rows and name. The source grid contains populated sheet rows, including titles, headers, totals and balances, with lettered columns (A, B, …) and a __ndi_source_row__ column containing original one-based row numbers. Blank rows are omitted; later row numbers retain their positions. Values are stored cell values or cached formula results, rather than Excel display formatting. The sheet’s source_grid metadata gives its table name and counts. Use file-metadata to obtain the registered SQL name, which can include a suffix to avoid collisions. An unavailable source grid is reported on the sheet as source_grid_unavailable:<code>; the normalized ledger remains usable. Existing ingestions need re-ingestion to add the source grid.

Creating a workspace

List available domains first to get the slug to pass as domain_slug:
Response:

Workspace stats

Returns file counts (files_total), ingestion status distribution (files_by_ingestion_status), storage bytes (bytes_total), and the size of the published knowledge graph (kg_nodes, kg_edges, both 0 when none is built). Build status is on the build’s job.

Listing workspaces

Returns a keyset-paginated page. Pass ?cursor=<next_cursor> for subsequent pages.

Rename a workspace

Rename an ordinary workspace through PATCH /v1/workspaces/{workspace_id}. Its UUID, storage, files and derived artifacts stay the same. Names use the same validation and owner-scoped uniqueness as creation; a conflict returns 409 workspace_name_taken. Console members may rename only workspaces they own. Organization owners/admins and integration callers may rename any ordinary workspace they can access. A shared member renaming another owner’s workspace gets 403 access_denied; platform-provisioned names remain fixed (422 invalid_request). Sending name: null is rejected; omit it to leave the name unchanged. After a rename, use the current name to confirm deletion or a ledger reset.

Deleting a workspace

confirm_name must exactly match the workspace’s name. This is a cascade: all files, derivatives, and ingestion metadata are deleted. It cannot be undone. The response is a Job with kind: "workspace_delete".

Knowledge graph

By default (auto_build on) every ingestion chains a graph build, until the graph corpus reaches the deployment’s kg.auto_build.max_corpus_files limit. You can also ask for a build once the workspace has at least one ingested file; an explicit build runs past that limit. A workspace with no ingested files is refused with 422 invalid_request:
A build is billable and runs for as long as the corpus takes. For a workspace that should build only on request, turn auto_build off. PATCH replaces the knowledge_graph block whole, so if the workspace already has exclude_path_prefixes or exclude_categories set, read the current block first and send it back with auto_build changed — sending auto_build alone resets the rest of the block to its schema defaults (empty), silently dropping any exclusion rules:
The same whole-block rule applies to ledger_understanding (trigger, gl_parsing). Ingestion doesn’t start ledger understanding: start a run with POST /v1/workspaces/{id}/ledger-understanding when the ledger is in place. trigger is accepted and stored for compatibility; it currently has no effect. See Ledger understanding. See Knowledge graph and the workspace guide.

Global context

global_context is background text that every query in the workspace should know, such as how the journals are keyed or which entity the ledger covers. Save it once, and every je-testing or search request that omits context runs with it. Send context to replace it for one run, or "context": "" to run with none. It is capped at the same length as a query’s context.
Send "global_context": "" to clear it. Storage connection details are visible only to callers who can view that connection. A shared workspace still reports storage.type = "external", but connection_id, provider, location, and health are null for other readers. Sharing a workspace does not share its storage connection. Deleting a workspace preserves independent standalone uploads read by its jobs. Delete unused handles separately with DELETE /v1/uploads/{upload_id}; uploads still read by other jobs remain protected.