Skip to main content
POST
create_workspace

Authorizations

X-API-Key
string
header
required

Headers

Idempotency-Key
string | null

Use the same key to recover an earlier request. A replay returned as a Job carries Idempotent-Replayed: true and replayed: true without a new charge; Job credits keeps the original cost. Re-serving a settled inline tool answer reports zero credits for that call and also carries Idempotent-Replayed: true; a fresh re-execution after a transient failure carries no header. The key is kept with the job for replay and never cleared, so it must not contain personal data.

Maximum string length: 200

Body

application/json

Provision a new workspace.

Every field has a default so a caller who knows nothing creates a working workspace with just a name. Creating a workspace ingests nothing and costs nothing — it is a namespace plus a configuration.

name
string
required
Required string length: 1 - 200
access
AccessConfig · object

Access-label configuration. labels=[] (the default) disables filtering entirely.

currency
CurrencyPolicy · object

How to read amounts whose currency the documents leave open. Defaults to USD; send default=null to assume nothing.

domain_slug
string
default:generic

Domain vocabulary. Resolved to the latest published version unless pinned.

domain_version
integer | null

Pin a specific domain version. Omit to take the latest published.

global_context
string
default:""

Standing background for every query in this workspace — how its journals are keyed, which entity it covers, what an auditor already knows. A je-testing or search request that omits context runs with this text; a request that sends context replaces it for that run, and "" runs with none. Empty means none. Surrounding whitespace is stripped.

Maximum string length: 20000
knowledge_graph
KnowledgeGraphConfig · object

Knowledge-graph build policy. Builds are on demand unless this asks for automatic ones, so a workspace only pays for a graph someone wanted.

ledger_understanding
LedgerUnderstandingConfig · object

When to understand the workspace's general ledger — table and column roles, the journal key and its balance proof, and the integrity battery. Runs automatically for a workspace that holds a journal-line table, and costs one that does not nothing.

Response

Successful Response

A provisioned workspace, as the API returns it.

Storage metadata identifies the durable backend without exposing credentials.

access
AccessConfig · object
required

A workspace's access-control setting, chosen once at creation.

labels = [] is the default and means no filtering at all — no classification pass at ingestion, no filter clause at retrieval, and Coverage reports nothing. A workspace that does not need document-level access control should not pay for a classification that always returns the same answer.

Coverage reporting is always strict: whenever the gate withholds candidates, the response says so in counts and label names. A silently narrowed answer is the failure mode this platform exists to prevent, so there is no opt-out.

config_version
integer
required
created_at
string<date-time>
required
currency
CurrencyPolicy · object
required

How this workspace's documents should be read where they leave a currency open.

Extraction never converts an amount and never invents a currency: one whose currency the source does not state is recorded as ambiguous with no value, so it matches no amount filter. New workspaces default to DEFAULT_WORKSPACE_CURRENCY (USD), so a corpus that writes every total as a bare $900.00 and names a currency nowhere is filterable out of the box. Set default to another ISO code to change the reading, or to null to assume nothing — an amount whose currency the source never states then stays ambiguous rather than being read as USD.

domain_id
string<uuid>
required
domain_slug
string
required
domain_version
integer
required
knowledge_graph
KnowledgeGraphConfig · object
required

A workspace's knowledge-graph build policy.

The defaults keep the whole corpus in scope and build the graph after every ingestion, so fact search and deep search have it to navigate by. Set auto_build=false for a workspace that builds only on request. exclude_path_prefixes and exclude_categories are the workspace-wide skip rules a file's graph_inclusion can override — a file matching either is left out of the graph corpus unless it is explicitly include\ d.

name
string
required
owner_user_id
string<uuid> | null
required

The console user who owns the workspace, or null for an organization-owned integration workspace.

share_count
integer
required

Number of users explicitly granted workspace access; excludes the owner.

Required range: x >= 0
status
enum<string>
required

Lifecycle states visible on the API surface.

deleted is a final internal state; a deleted workspace never appears in any list or get response — it is as if it never existed.

Available options:
active,
deleting
updated_at
string<date-time>
required
workspace_id
string<uuid>
required
global_context
string
default:""

Standing background for every query in this workspace — how its journals are keyed, which entity it covers, what an auditor already knows. A je-testing or search request that omits context runs with this text; a request that sends context replaces it for that run, and "" runs with none. Empty means none. Surrounding whitespace is stripped.

ledger_understanding
LedgerUnderstandingConfig · object

When this workspace understands its general ledger — table and column roles, the journal key and its balance proof, and the integrity battery. A workspace configured before this block existed reads back the default.

purpose
enum<string> | null

Set when the platform provisioned this workspace on a person's behalf rather than at a caller's request. Such a workspace cannot be deleted. Null for every workspace created through this API.

Available options:
perception_playground
storage
ManagedWorkspaceStorage · object

The workspace's durable storage backend and external connection health.