Topolo Docs Topolo Platform
Open workspace

List spaces

Read the latest one hundred space records in the selected workspace.

Outcome

Read the latest one hundred space records in the selected workspace.

Before you start

  • Verify the authenticated identity, exact environment and pinned approved organization context before preparing an action.
  • The published application permission is workspace:read. Discover a granted Spaces workspace and bind that exact resource. Supplied identifiers do not grant access.

Discover the target

topolo whoami --json
topolo actions get app_topolo_spaces.spaces.list --detail --json
topolo resources topolo-spaces --json
topolo workspaces list topolo-spaces --json
  • Select the exact granted workspace id as SPACES_WORKSPACE_ID. Fixture ids authorize no live operation.

Request

GET /api/spaces

Save action input as payload.json. Inspect the plan for the exact path, query and body. Set SPACES_WORKSPACE_ID from granted resource discovery.

Inspect and test this action in the signed action console, then perform the verification below.

Input fields

Supply an empty input object; credential and resource context are separate.

View the complete input schema in the action console. The same schema is available through CLI and MCP action discovery.

Effects

  • Returns raw stored space fields ordered by updated_at descending with LIMIT 100 and no published cursor or offset input.
  • An empty array is valid. This action neither creates a mirror nor proves there are no older rows beyond the latest one hundred.

Interpret the response

Use response path $.spaces[].id for space_collection. An empty list does not discover a target.

Select exact spaces[].id values from this workspace; check status, visibility and active_runtime_asset_id. Retain the id from a creation response for later operations even if it falls outside this bounded list.

The success schema was checked against captured handler responses. Delegated Auth identity and canonical widget context fields can vary; exact Spaces envelopes and all thirteen SQL export table sets are source-reviewed against the migrated local schema. Error responses can be plain text; the original refusal body is retained. Error examples retain their actual refusal shapes.

View the complete success schema in the action console. The worked examples below retain complete raw captured Worker responses. CLI responses have a transport envelope and can be bounded unless --detail is requested; action discovery supplies the exact schema.

Worked examples

Real isolated local D1/R2 and source handlers with synthetic Auth/workspace discovery, queue transport, notification delivery and metering. Arbitrary fixture SOG bytes demonstrate handler state only, not valid Gaussian data, renderer quality, deployed processing or live effects. Annotation rows are seeded directly into isolated fixture storage because no annotation mutation is published. Refused examples demonstrate boundaries and must not be executed as successful workflows.

Successful request

Actual local Worker response; all four migrated D1 databases and R2 are real. Auth identity/workspace discovery, queue transport, notification delivery and metering are simulated or disabled. Captured scenario: minimal.

Input · payload.json:

{}

CLI:

topolo actions validate app_topolo_spaces.spaces.list --data @payload.json --json
topolo actions plan app_topolo_spaces.spaces.list --resource-type workspace --resource-id "$SPACES_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_spaces.spaces.list --resource-type workspace --resource-id "$SPACES_WORKSPACE_ID" --data @payload.json --detail --json

MCP tool and arguments:

{
  "tool": "topolo_read_action",
  "arguments": {
    "actionId": "app_topolo_spaces.spaces.list",
    "input": {},
    "resourceType": "workspace",
    "resourceId": "<identifier returned by granted resource discovery>"
  }
}

Captured local response · HTTP 200:

{
  "spaces": []
}

HTTP 200. Select exact spaces[].id values from this workspace; check status, visibility and active_runtime_asset_id. Retain the id from a creation response for later operations even if it falls outside this bounded list.

Another supported request

Actual local Worker response; all four migrated D1 databases and R2 are real. Auth identity/workspace discovery, queue transport, notification delivery and metering are simulated or disabled. Captured scenario: minimal.

Input · payload.json:

{}

CLI:

topolo actions validate app_topolo_spaces.spaces.list --data @payload.json --json
topolo actions plan app_topolo_spaces.spaces.list --resource-type workspace --resource-id "$SPACES_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_spaces.spaces.list --resource-type workspace --resource-id "$SPACES_WORKSPACE_ID" --data @payload.json --detail --json

MCP tool and arguments:

{
  "tool": "topolo_read_action",
  "arguments": {
    "actionId": "app_topolo_spaces.spaces.list",
    "input": {},
    "resourceType": "workspace",
    "resourceId": "<identifier returned by granted resource discovery>"
  }
}

Captured local response · HTTP 200:

{
  "spaces": [
    {
      "id": "space_9338e6fc-cc93-421e-a783-6c8062088e0c",
      "organization_id": "org_spaces_fixture",
      "workspace_id": "ws_spaces_minimal",
      "title": "Untitled space",
      "description": "",
      "status": "draft",
      "visibility": "private",
      "active_runtime_asset_id": null,
      "thumbnail_asset_id": null,
      "capture_mode": "import",
      "created_by": "usr_spaces_fixture",
      "created_at": "2026-10-04T07:15:16.023Z",
      "updated_at": "2026-10-04T07:15:16.023Z"
    }
  ]
}

HTTP 200. Select exact spaces[].id values from this workspace; check status, visibility and active_runtime_asset_id. Retain the id from a creation response for later operations even if it falls outside this bounded list.

Another supported request

Actual local Worker response; all four migrated D1 databases and R2 are real. Auth identity/workspace discovery, queue transport, notification delivery and metering are simulated or disabled. Captured scenario: workflow.

Input · payload.json:

{}

CLI:

topolo actions validate app_topolo_spaces.spaces.list --data @payload.json --json
topolo actions plan app_topolo_spaces.spaces.list --resource-type workspace --resource-id "$SPACES_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_spaces.spaces.list --resource-type workspace --resource-id "$SPACES_WORKSPACE_ID" --data @payload.json --detail --json

MCP tool and arguments:

{
  "tool": "topolo_read_action",
  "arguments": {
    "actionId": "app_topolo_spaces.spaces.list",
    "input": {},
    "resourceType": "workspace",
    "resourceId": "<identifier returned by granted resource discovery>"
  }
}

Captured local response · HTTP 200:

{
  "spaces": []
}

HTTP 200. Select exact spaces[].id values from this workspace; check status, visibility and active_runtime_asset_id. Retain the id from a creation response for later operations even if it falls outside this bounded list.

Another supported request

Actual local Worker response; all four migrated D1 databases and R2 are real. Auth identity/workspace discovery, queue transport, notification delivery and metering are simulated or disabled. Captured scenario: workflow.

Input · payload.json:

{}

CLI:

topolo actions validate app_topolo_spaces.spaces.list --data @payload.json --json
topolo actions plan app_topolo_spaces.spaces.list --resource-type workspace --resource-id "$SPACES_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_spaces.spaces.list --resource-type workspace --resource-id "$SPACES_WORKSPACE_ID" --data @payload.json --detail --json

MCP tool and arguments:

{
  "tool": "topolo_read_action",
  "arguments": {
    "actionId": "app_topolo_spaces.spaces.list",
    "input": {},
    "resourceType": "workspace",
    "resourceId": "<identifier returned by granted resource discovery>"
  }
}

Captured local response · HTTP 200:

{
  "spaces": [
    {
      "id": "space_bfe6af37-3588-406b-b103-7675eb527e82",
      "organization_id": "org_spaces_fixture",
      "workspace_id": "ws_spaces_workflow",
      "title": "workflow capture",
      "description": "Synthetic Gaussian capture",
      "status": "draft",
      "visibility": "private",
      "active_runtime_asset_id": null,
      "thumbnail_asset_id": null,
      "capture_mode": "import",
      "created_by": "usr_spaces_fixture",
      "created_at": "2026-10-04T07:15:17.599Z",
      "updated_at": "2026-10-04T07:15:17.599Z"
    }
  ]
}

HTTP 200. Select exact spaces[].id values from this workspace; check status, visibility and active_runtime_asset_id. Retain the id from a creation response for later operations even if it falls outside this bounded list.

Another supported request

Actual local Worker response; all four migrated D1 databases and R2 are real. Auth identity/workspace discovery, queue transport, notification delivery and metering are simulated or disabled. Captured scenario: privacy.

Input · payload.json:

{}

CLI:

topolo actions validate app_topolo_spaces.spaces.list --data @payload.json --json
topolo actions plan app_topolo_spaces.spaces.list --resource-type workspace --resource-id "$SPACES_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_spaces.spaces.list --resource-type workspace --resource-id "$SPACES_WORKSPACE_ID" --data @payload.json --detail --json

MCP tool and arguments:

{
  "tool": "topolo_read_action",
  "arguments": {
    "actionId": "app_topolo_spaces.spaces.list",
    "input": {},
    "resourceType": "workspace",
    "resourceId": "<identifier returned by granted resource discovery>"
  }
}

Captured local response · HTTP 200:

{
  "spaces": []
}

HTTP 200. Select exact spaces[].id values from this workspace; check status, visibility and active_runtime_asset_id. Retain the id from a creation response for later operations even if it falls outside this bounded list.

Another supported request

Actual local Worker response; all four migrated D1 databases and R2 are real. Auth identity/workspace discovery, queue transport, notification delivery and metering are simulated or disabled. Captured scenario: privacy.

Input · payload.json:

{}

CLI:

topolo actions validate app_topolo_spaces.spaces.list --data @payload.json --json
topolo actions plan app_topolo_spaces.spaces.list --resource-type workspace --resource-id "$SPACES_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_spaces.spaces.list --resource-type workspace --resource-id "$SPACES_WORKSPACE_ID" --data @payload.json --detail --json

MCP tool and arguments:

{
  "tool": "topolo_read_action",
  "arguments": {
    "actionId": "app_topolo_spaces.spaces.list",
    "input": {},
    "resourceType": "workspace",
    "resourceId": "<identifier returned by granted resource discovery>"
  }
}

Captured local response · HTTP 200:

{
  "spaces": [
    {
      "id": "space_858bda7b-397a-4784-979e-609961a9a16e",
      "organization_id": "org_spaces_fixture",
      "workspace_id": "ws_spaces_privacy",
      "title": "privacy capture",
      "description": "Synthetic Gaussian capture",
      "status": "draft",
      "visibility": "private",
      "active_runtime_asset_id": null,
      "thumbnail_asset_id": null,
      "capture_mode": "import",
      "created_by": "usr_spaces_fixture",
      "created_at": "2026-10-04T07:15:18.493Z",
      "updated_at": "2026-10-04T07:15:18.493Z"
    }
  ]
}

HTTP 200. Select exact spaces[].id values from this workspace; check status, visibility and active_runtime_asset_id. Retain the id from a creation response for later operations even if it falls outside this bounded list.

Verify the result

  • Select exact spaces[].id values from this workspace; check status, visibility and active_runtime_asset_id.
  • Retain the id from a creation response for later operations even if it falls outside this bounded list.

Errors and recovery

  • organization_context_required (HTTP 403): Stop and authenticate into the approved owning organization. Preserve the actual denial; a resource id does not grant organization access.
  • workspace_required (HTTP 400): Discover the exact granted canonical workspace through resource/workspace discovery; bootstrap does not return a workspace record.

A plain-text server refusal is surfaced by CLI/MCP as http_error with its HTTP status and requestId; its text is not a structured service error.code. Auth, action-input validation and platform resource resolution can refuse a request before its handler. Retain the exact error, request id and context; requesting another context is not a legitimate way to bypass a refusal.

Recovery boundary

This read does not change service state. An empty or bounded list is not a reason to guess an identifier.

  • Get space: Read one space with its stored asset, annotation, public-link and processing-job records.
  • Create space: Create a private draft capture in the selected workspace with optional title and description.

Evidence

Real isolated local D1/R2 and source handlers with synthetic Auth/workspace discovery, queue transport, notification delivery and metering. Arbitrary fixture SOG bytes demonstrate handler state only, not valid Gaussian data, renderer quality, deployed processing or live effects. Annotation rows are seeded directly into isolated fixture storage because no annotation mutation is published. Capture digests and test scenarios are retained in the source fixture records.