Topolo Docs Topolo Platform
Open workspace

List segment members

List the contacts currently in a segment as of its last recompute, newest entries first.

Outcome

List the contacts currently in a segment as of its last recompute, newest entries first.

Before you start

  • Verify identity and pin the intended organization and environment before discovering the action.
  • Discover a granted Nurture workspace. The application permission is workspace:read; required workspace access is read. A permission alone does not supply a workspace grant.
  • Organization and workspace come from verified context. Select resourceType/resourceId separately from action input; body fields cannot grant a different organization or workspace. The first authorized product action can initialize an identity-only workspace mirror.

Discover the target

topolo whoami --json
topolo actions get app_topolo_nurture.segments.members.list --detail --json
topolo resources topolo-nurture --json
topolo workspaces list topolo-nurture --json
topolo actions get app_topolo_nurture.segments.list --detail --json
  • id: segments record id in the selected workspace.

Request

GET /api/segments/{id}/members

Save action input as payload.json. The reviewed plan separates path identifiers, query fields and HTTP body. Set NURTURE_WORKSPACE_ID from granted resource discovery; it is separate from action input.

Inspect and test this action in the signed action console. A test response still requires the verification below.

Input fields

FieldRequiredTypeConstraints
idRequiredstringsegments record id in the selected workspace. {"minLength":1,"maxLength":64}
limitOptionalinteger{"minimum":1,"maximum":500}

Exact input schema:

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 500
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}

Effects

  • Reads current segment membership without changing state.

Interpret the response

The returned identifier path is $.segmentId for segment. Empty lists do not discover a target.

Confirm every member contactId resolves with app_topolo_nurture.contacts.get.

Exact success schema:

{
  "type": "object",
  "required": [
    "segmentId",
    "members"
  ],
  "properties": {
    "segmentId": {
      "type": "string"
    },
    "members": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "contactId",
          "enteredAt"
        ],
        "properties": {
          "contactId": {
            "type": "string"
          },
          "enteredAt": {
            "type": "string"
          }
        }
      }
    }
  }
}

Worked examples

Actual dispatcher and migration-created SQLite or Worker handlers; identity/workspace and external service dependencies are simulated. Fixture identifiers and timestamps are synthetic. These responses establish no live authorization, paid generation, credential provisioning or message delivery. Replace synthetic identifiers using credential-scoped discovery. A local success is not evidence of a deployed effect, configured provider or delivered message.

Successful request

Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.

Input · payload.json:

{
  "id": "seg_24f0736ea05d4a44833b45c8e891afe2"
}

CLI:

topolo actions validate app_topolo_nurture.segments.members.list --data @payload.json --json
topolo actions plan app_topolo_nurture.segments.members.list --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_nurture.segments.members.list --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json

MCP tool and arguments:

{
  "tool": "topolo_read_action",
  "arguments": {
    "actionId": "app_topolo_nurture.segments.members.list",
    "input": {
      "id": "seg_24f0736ea05d4a44833b45c8e891afe2"
    },
    "resourceType": "workspace",
    "resourceId": "<identifier returned by resource discovery>"
  }
}

Captured local response · HTTP 200:

{
  "segmentId": "seg_24f0736ea05d4a44833b45c8e891afe2",
  "members": [
    {
      "contactId": "nct_90025a2295394f68883e2d5ff7972940",
      "enteredAt": "2026-10-04T00:32:34.653Z"
    }
  ]
}

HTTP 200. Confirm every member contactId resolves with app_topolo_nurture.contacts.get.

Another supported request

Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.

Input · payload.json:

{
  "id": "seg_7dee3694b433444d8e57a3d547a0b92c",
  "limit": 10
}

CLI:

topolo actions validate app_topolo_nurture.segments.members.list --data @payload.json --json
topolo actions plan app_topolo_nurture.segments.members.list --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_nurture.segments.members.list --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json

MCP tool and arguments:

{
  "tool": "topolo_read_action",
  "arguments": {
    "actionId": "app_topolo_nurture.segments.members.list",
    "input": {
      "id": "seg_7dee3694b433444d8e57a3d547a0b92c",
      "limit": 10
    },
    "resourceType": "workspace",
    "resourceId": "<identifier returned by resource discovery>"
  }
}

Captured local response · HTTP 200:

{
  "segmentId": "seg_7dee3694b433444d8e57a3d547a0b92c",
  "members": [
    {
      "contactId": "nct_4a851f8c56dd4996a45e67778690a510",
      "enteredAt": "2026-10-04T00:32:38.616Z"
    }
  ]
}

HTTP 200. Confirm every member contactId resolves with app_topolo_nurture.contacts.get.

Refused request · not_found

Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.

Input · payload.json:

{
  "id": "seg_missing"
}

CLI:

topolo actions validate app_topolo_nurture.segments.members.list --data @payload.json --json
topolo actions plan app_topolo_nurture.segments.members.list --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json

Captured local response · HTTP 404:

{
  "error": {
    "code": "not_found",
    "message": "Segment was not found in this workspace."
  }
}

HTTP 404. Preserve the refusal details and do not claim success.

Verify the result

  • Confirm every member contactId resolves with app_topolo_nurture.contacts.get.

Errors and recovery

  • organization_required (HTTP 403): Select an organization available to the verified caller before choosing a Nurture workspace.
  • permission_denied (HTTP 403): Grant the credential the required Nurture workspace permission.
  • workspace_required (HTTP 409): Create a Nurture workspace, or pass the workspace resource context.
  • invalid_input (HTTP 422): Correct the fields named in error.details using inputSchema, then retry.
  • not_found (HTTP 404): List segments to find a valid id in this workspace.

Auth or gateway failures may precede this handler. Preserve the exact response shape, error string/code, request id and credential context; no synthetic fixture establishes live credential access.

Recovery boundary

This action does not change service state.

Evidence

Actual dispatcher and migration-created SQLite or Worker handlers; identity/workspace and external service dependencies are simulated. Fixture identifiers and timestamps are synthetic. These responses establish no live authorization, paid generation, credential provisioning or message delivery. Test scenario and capture digests are retained with each fixture.