Topolo Docs Topolo Platform
Open workspace

List Insights collection keys

List website collectors without exposing their one-time collection secrets.

Outcome

List website collectors without exposing their one-time collection secrets.

Before you start

  • Verify the exact identity, environment and approved organization with topolo whoami before discovering this action.
  • Inspect the credential-scoped action and canonical resource discovery. Examples use synthetic resources; replace their handles only with separately verified targets.
  • Validate the complete input and review the action plan. Mutation and organization-inventory actions require explicit confirmation; a successful shape check does not prove a runtime grant.
  • Select a granted workspace through topolo resources. The CLI/MCP supplies canonical resource headers; workspace identity is not an arbitrary payload field.

Discover the target

topolo whoami --json
topolo apps get topolo-insights --json
topolo actions get app_topolo_insights.collection_sites.list --detail --json
topolo resources topolo-insights --json

Request

GET /api/collection-sites · permission workspace:read · read without mutation confirmation.

Inspect schemas and test this action in the signed action console. The complete field schema is also available through CLI/MCP action discovery.

Effects and scope

  • Requires workspace read access. Lists collector ids, associated source ids/keys, exact allowed origins, collection mode, status and creation time.
  • The response omits siteKey and the stored secret hash. Re-reading cannot recover a one-time generated secret.

Interpret the response

  • Compare data[].id, sourceKey, allowedOrigins and collectionMode.
  • Use the collector id for revoke; do not use a source id or key as siteId.

Worked requests and responses

Actual exported Insights worker, all nine migrated D1 scripts and isolated local R2. Auth identity/grants/archive transport, queue delivery and Analytics Engine sink are synthetic; local queue processing is called explicitly. Notify and Nexus are disabled. No live website, provider, paid usage or deployed data erasure is tested. Successful and refused captures below are separate examples. A refused response is a boundary, not a successful task.

empty · success 1 · HTTP 200

Actual exported Insights worker, all nine migrated D1 scripts and isolated local R2. Auth identity/grants/archive transport, queue delivery and Analytics Engine sink are synthetic; local queue processing is called explicitly. Notify and Nexus are disabled. No live website, provider, paid usage or deployed data erasure is tested. Selected synthetic workspace: ws_insights_empty. Fixture handles authorize no live request.

Input · payload.json:

{}

CLI:

topolo actions validate app_topolo_insights.collection_sites.list --data @payload.json --json
topolo actions plan app_topolo_insights.collection_sites.list --data @payload.json --json
topolo actions call app_topolo_insights.collection_sites.list --data @payload.json --detail --json

MCP tool and arguments:

{
  "tool": "topolo_read_action",
  "arguments": {
    "actionId": "app_topolo_insights.collection_sites.list",
    "input": {}
  }
}

Captured raw Worker result

{
  "data": []
}

HTTP 200. Compare data[].id, sourceKey, allowedOrigins and collectionMode. Use the collector id for revoke; do not use a source id or key as siteId.

CLI/MCP adds its transport envelope; CLI --detail retains the full action result.

workflow · success 2 · HTTP 200

Actual exported Insights worker, all nine migrated D1 scripts and isolated local R2. Auth identity/grants/archive transport, queue delivery and Analytics Engine sink are synthetic; local queue processing is called explicitly. Notify and Nexus are disabled. No live website, provider, paid usage or deployed data erasure is tested. Selected synthetic workspace: ws_insights_workflow. Fixture handles authorize no live request.

Input · payload.json:

{}

CLI:

topolo actions validate app_topolo_insights.collection_sites.list --data @payload.json --json
topolo actions plan app_topolo_insights.collection_sites.list --data @payload.json --json
topolo actions call app_topolo_insights.collection_sites.list --data @payload.json --detail --json

MCP tool and arguments:

{
  "tool": "topolo_read_action",
  "arguments": {
    "actionId": "app_topolo_insights.collection_sites.list",
    "input": {}
  }
}

Captured raw Worker result

{
  "data": [
    {
      "id": "b7ad6707-a022-4ead-b8ec-204081e1dc17",
      "sourceId": "8e8a04e2-340c-4a28-8286-f94554943c78",
      "sourceKey": "marketing-site",
      "name": "Consent collector",
      "allowedOrigins": [
        "http://localhost:5173"
      ],
      "collectionMode": "consent",
      "status": "active",
      "createdAt": "2026-10-04T08:52:48.361Z"
    },
    {
      "id": "63038c5f-1b3f-4bb2-b885-231e6362a465",
      "sourceId": "8e8a04e2-340c-4a28-8286-f94554943c78",
      "sourceKey": "marketing-site",
      "name": "Cookieless collector",
      "allowedOrigins": [
        "https://example.com"
      ],
      "collectionMode": "cookieless",
      "status": "active",
      "createdAt": "2026-10-04T08:52:48.350Z"
    }
  ]
}

HTTP 200. Compare data[].id, sourceKey, allowedOrigins and collectionMode. Use the collector id for revoke; do not use a source id or key as siteId.

CLI/MCP adds its transport envelope; CLI --detail retains the full action result.

merge · success 3 · HTTP 200

Actual exported Insights worker, all nine migrated D1 scripts and isolated local R2. Auth identity/grants/archive transport, queue delivery and Analytics Engine sink are synthetic; local queue processing is called explicitly. Notify and Nexus are disabled. No live website, provider, paid usage or deployed data erasure is tested. Selected synthetic workspace: ws_insights_merge. Fixture handles authorize no live request.

Input · payload.json:

{}

CLI:

topolo actions validate app_topolo_insights.collection_sites.list --data @payload.json --json
topolo actions plan app_topolo_insights.collection_sites.list --data @payload.json --json
topolo actions call app_topolo_insights.collection_sites.list --data @payload.json --detail --json

MCP tool and arguments:

{
  "tool": "topolo_read_action",
  "arguments": {
    "actionId": "app_topolo_insights.collection_sites.list",
    "input": {}
  }
}

Captured raw Worker result

{
  "data": [
    {
      "id": "b7ad6707-a022-4ead-b8ec-204081e1dc17",
      "sourceId": "739a95f3-1617-4ea0-81aa-4e0810cdaa85",
      "sourceKey": "target-property",
      "name": "Consent collector",
      "allowedOrigins": [
        "http://localhost:5173"
      ],
      "collectionMode": "consent",
      "status": "active",
      "createdAt": "2026-10-04T08:52:48.361Z"
    },
    {
      "id": "63038c5f-1b3f-4bb2-b885-231e6362a465",
      "sourceId": "739a95f3-1617-4ea0-81aa-4e0810cdaa85",
      "sourceKey": "target-property",
      "name": "Cookieless collector",
      "allowedOrigins": [
        "https://example.com"
      ],
      "collectionMode": "cookieless",
      "status": "revoked",
      "createdAt": "2026-10-04T08:52:48.350Z"
    }
  ]
}

HTTP 200. Compare data[].id, sourceKey, allowedOrigins and collectionMode. Use the collector id for revoke; do not use a source id or key as siteId.

CLI/MCP adds its transport envelope; CLI --detail retains the full action result.

permission-refusals · refusal 4 · HTTP 403

Actual exported Insights worker, all nine migrated D1 scripts and isolated local R2. Auth identity/grants/archive transport, queue delivery and Analytics Engine sink are synthetic; local queue processing is called explicitly. Notify and Nexus are disabled. No live website, provider, paid usage or deployed data erasure is tested. Selected synthetic workspace: ws_insights_merge. Fixture handles authorize no live request.

Input · payload.json:

{}

CLI:

topolo actions validate app_topolo_insights.collection_sites.list --data @payload.json --json
topolo actions plan app_topolo_insights.collection_sites.list --data @payload.json --json

Captured raw Worker result

{
  "success": false,
  "error": {
    "code": "action_permission_required",
    "message": "Action \"collection_sites.list\" requires permission \"workspace:read\".",
    "action": "collection_sites.list"
  }
}

HTTP 403. The credential lacks the declared action permission. Inspect credential-scoped discovery in the same approved context; workspace role does not replace the permission.

CLI/MCP adds its transport envelope; CLI --detail retains the full action result.

Verify the outcome

  • Compare data[].id, sourceKey, allowedOrigins and collectionMode.
  • Use the collector id for revoke; do not use a source id or key as siteId.

Errors and recovery

  • action_permission_required (HTTP 403): The credential lacks the declared action permission. Inspect credential-scoped discovery in the same approved context; workspace role does not replace the permission.

Only observed refusals are listed. This does not promise that external dependencies or every invalid payload have been exhaustively exercised.

Recovery boundary

This action does not change Insights records. Resolve the reported identity, permission, workspace or source problem in the approved context, then repeat the same read. A read result is not permission to modify its resources.

Evidence and limits

Actual exported Insights worker, all nine migrated D1 scripts and isolated local R2. Auth identity/grants/archive transport, queue delivery and Analytics Engine sink are synthetic; local queue processing is called explicitly. Notify and Nexus are disabled. No live website, provider, paid usage or deployed data erasure is tested.