get_workspace
This page answers what get_workspace returns, what it takes, and how it fails.
Purpose
get_workspace returns the workspace exactly as it is stored: every collection and every field,
unedited, including warm-query text and pending proposal groups. Secrets appear only as
$secret:<key> references, never as values, and minted tokens are left out. It reads the workspace
fresh on every call and changes nothing.
Inputs
| Input | Type | Meaning |
|---|---|---|
kinds | list of text | Keep only these top-level collections, such as ["WarmQueries", "DataConnections"]. Omit it for the whole workspace. |
includeGuides | true or false | Also return each kind's guide, schema and examples. Default false. |
thinkyContext | object | { "Items": [...] }: the context items that are on, each with its Id, Kind, Name and Target. The workspace still comes whole; the answer adds ThinkyContext, below. Omit it for the plain read. |
Example
{ "kinds": ["DatabaseTables"], "includeGuides": true }
The answer
| Part | What it holds |
|---|---|
EaC | The workspace as stored, or the collections kinds kept. The workspace's own name and details are always kept |
Capabilities | What can be built in this workspace now, below |
NotSetUp | What is on but waits on a set-up step before its routes show, below. Absent when the api did not say |
CloudStatus | The state of each connected cloud's key, below. Absent when the api did not say |
RejectionNotes | The changes people rejected here, with their words, below. Absent when there are none to read |
ThinkyContext | Only when asked with thinkyContext: Items (the ids honoured), Unknown (the ids dropped: a kind nothing declares, or one your rights leave out), Guides (the guide of each honoured item's kind that brings one, once per kind) and HeldKinds (each kind with at least one record you may read, whose tools Thinky loads). It never narrows EaC |
Secrets | ClearFields: the paths of any credential still stored in clear, which reads as a placeholder. Names only, never a value; empty is the norm |
Diagnostics | EaCLoad, LoadedAt, and EmptyKinds for a known collection with no records |
Capabilities
| Field | What it holds |
|---|---|
ActiveKinds | The kinds that are on in this workspace |
MenuKinds | The active kinds that have a window in the workspace menu, with its label |
Kinds | Per active kind, where its guide, schema and examples are: its prompt id, its schema/<kind> resource and its example resources. With includeGuides: true, also the Guide, Schema and Examples themselves |
InactiveKinds | Each kind that is not on yet, once, with its Code, Reason, Remedy and, where there is one, Requires |
Requires lists the record kinds the workspace still lacks, in the order they are set up. A kind that needs the
private landing zone, in a workspace with no cloud connected yet, reads:
{
"Kind": "Provenance",
"Code": "PRIVATE_LANDING_ZONE_REQUIRED",
"Reason": "This needs a private landing zone, which this workspace does not have yet.",
"Remedy": "Connect a cloud from Cloud → Cloud Connections, then create your private landing zone from Cloud → Landing Zone.",
"Requires": ["Clouds", "CALZ"]
}
With a cloud connected, Requires is ["CALZ"]. The landing zone itself is listed the same way until a cloud
is connected: CLOUD_CONNECTION_REQUIRED, with Requires ["Clouds"]. The order is on
Cloud.
Clouds is on in every workspace, and CALZ once a cloud is connected; both can be proposed like any other kind
(see manage_proposals). Until a kind is on or has a stored record,
naming it in kinds is refused as unknown, as for any kind.
If the capability list could not be built, Capabilities is left out and Diagnostics.Void is true with a
Reason; the EaC is still the workspace as stored.
What is not set up yet
NotSetUp is beside Capabilities, and does not depend on kinds. It lists each capability that is on but whose
routes are hidden until a set-up step is done, once per kind and Code, in the words of the part of OpenX that owns
it. InactiveKinds is the other half: a kind that is not on at all. An entry holds Kind, Code, Reason,
Remedy and, where there is one, Requires. It never holds a route address. For a workspace with a private landing
zone and no Provenance trail, an entry reads:
{
"Kind": "provenance",
"Code": "PROVENANCE_NOT_PROVISIONED",
"Reason": "Provenance storage is not provisioned for this workspace.",
"Remedy": "Add a Provenance trail in Cloud → Provenance, then Deploy.",
"Requires": ["Provenance"]
}
NotSetUp is present and empty ([]) when nothing is waiting. It is left out, not empty, when the api serving the
workspace does not send the list yet, so read a missing NotSetUp as "not said". The list is the same for every
caller of the workspace and is not narrowed by the rights you hold. Use it when a right you hold seems to have no
route: call_api answers a waiting
route CALL_API_ROUTE_NOT_SET_UP, and the Remedy here says what to do about it.
The cloud's state
CloudStatus is beside Capabilities, and does not depend on kinds. It lists the state of each connected cloud as
the workspace last checked it, which is at most a few minutes ago, in plain words. An entry holds:
| Field | What it holds |
|---|---|
Cloud | The cloud's lookup |
State | connected, key-rejected, key-expired, consent-needed, not-connected or could-not-check |
Label | A short name for the state, such as "Key rejected" |
Remedy | What to do next, such as "Open Cloud Connections and choose Renew Connection." Left out when nothing is needed |
Code | The refusal's code, when there is one. Left out otherwise |
CheckedAt | When the cloud was checked |
could-not-check means the check did not reach an answer, so nothing is known about the key; it is not a failure.
After an hour of checks that did not answer, its Label reads Couldn't check since 2026-10-27 12:00 UTC. When
the api does not send a cloud status, there is no CloudStatus, so read a missing one as "not said". The steps for a bad key are in
A cloud key was rejected.
The workspace's instructions
EaC.Details.Description says what the workspace is for, and EaC.Details.Instructions say how its people
want AIs to work in it (at most 2,000 characters). Both are kept on every read, whatever kinds asks for. Follow
the instructions. They never grant a right: every change still goes through manage_proposals. Absent means the
workspace has none. To change them, propose a WorkspaceDetails change with Lookup Workspace; the proposed
Instructions replace the whole text, so carry over the lines you keep. See
Proposals.
Rejected changes
RejectionNotes is beside EaC, newest first. Each note is a change a person rejected, with what they said when
they gave a reason: Kind and Lookup (the item), Change (add, edit or remove), Reason (when given) and
At (when). Read them before you propose: a person already said no to that change. A note goes once the item
changes, after 30 days, or when newer notes push it out. Only the notes about collections your rights cover are
listed. When the workspace has notes turned off, there are none. The stored notes are never inside EaC. See
Proposals.
Errors
- An unknown name in
kindsis refused (UNKNOWN_KINDS) with the list of valid names, and nothing is returned. - If
Diagnostics.EaCLoadis not"ok", the answer holds no workspace: the workspace was not read, which is not the same as an empty workspace."refused"means the read was refused (401 or 403);"error"means it failed. Try again, or check the connection.
On fathym.com: OpenX MCP Server →