Topolo Docs Topolo Platform
Open workspace

List journeys

List the journeys in the caller's Nurture workspace, newest change first, optionally filtered by status (draft = never published, published = has a live version, archived).

Outcome

List the journeys in the caller's Nurture workspace, newest change first, optionally filtered by status (draft = never published, published = has a live version, archived).

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.journeys.list --detail --json
topolo resources topolo-nurture --json
topolo workspaces list topolo-nurture --json

Request

GET /api/journeys

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
statusOptionalstring{"enum":["draft","published","archived"]}

Exact input schema:

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "published",
        "archived"
      ]
    }
  },
  "additionalProperties": false
}

Effects

  • Reads journeys without changing state.

Interpret the response

The returned identifier path is $.journeys[].id for journey. Empty lists do not discover a target.

Confirm each journey belongs to the selected workspace.

Exact success schema:

{
  "type": "object",
  "required": [
    "journeys"
  ],
  "properties": {
    "journeys": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "definition": {
            "type": "object"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "published",
              "archived"
            ]
          },
          "currentVersion": {
            "type": [
              "integer",
              "null"
            ]
          },
          "hasUnpublishedChanges": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "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:

{
  "status": "published"
}

CLI:

topolo actions validate app_topolo_nurture.journeys.list --data @payload.json --json
topolo actions plan app_topolo_nurture.journeys.list --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_nurture.journeys.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.journeys.list",
    "input": {
      "status": "published"
    },
    "resourceType": "workspace",
    "resourceId": "<identifier returned by resource discovery>"
  }
}

Captured local response · HTTP 200:

{
  "journeys": []
}

HTTP 200. Confirm each journey belongs to the selected workspace.

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:

{}

CLI:

topolo actions validate app_topolo_nurture.journeys.list --data @payload.json --json
topolo actions plan app_topolo_nurture.journeys.list --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_nurture.journeys.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.journeys.list",
    "input": {},
    "resourceType": "workspace",
    "resourceId": "<identifier returned by resource discovery>"
  }
}

Captured local response · HTTP 200:

{
  "journeys": [
    {
      "id": "jny_d0f3c411b8734591b78e563f8f8f2c6e",
      "name": "Welcome A",
      "description": "Three emails over five days after signup; a purchase ends the journey as converted.",
      "definition": {
        "trigger": {
          "eventTypes": [
            "signup"
          ],
          "segmentIds": []
        },
        "entryNodeId": "email_1",
        "nodes": [
          {
            "id": "email_1",
            "kind": "send",
            "templateRef": "tpl_359f9f635ea44556a7cdf39092c00021",
            "purpose": "marketing",
            "topicKey": "news",
            "next": "wait_1"
          },
          {
            "id": "wait_1",
            "kind": "delay",
            "delay": {
              "mode": "duration",
              "minutes": 2880
            },
            "next": "email_2"
          },
          {
            "id": "email_2",
            "kind": "send",
            "templateRef": "tpl_76e99d77a8244d90a501d61006f49d60",
            "purpose": "marketing",
            "topicKey": "news",
            "next": "wait_2"
          },
          {
            "id": "wait_2",
            "kind": "delay",
            "delay": {
              "mode": "duration",
              "minutes": 4320
            },
            "next": "email_3"
          },
          {
            "id": "email_3",
            "kind": "send",
            "templateRef": "tpl_02f090373e29426193ff9fcc7b0ad84f",
            "purpose": "marketing",
            "topicKey": "news",
            "next": "done"
          },
          {
            "id": "goal",
            "kind": "goal",
            "eventType": "purchase"
          },
          {
            "id": "done",
            "kind": "exit"
          }
        ]
      },
      "status": "draft",
      "currentVersion": null,
      "hasUnpublishedChanges": true,
      "createdAt": "2026-10-04T00:32:36.449Z",
      "updatedAt": "2026-10-04T00:32:36.449Z"
    }
  ]
}

HTTP 200. Confirm each journey belongs to the selected workspace.

Verify the result

  • Confirm each journey belongs to the selected workspace.

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.

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.

  • Get journey: Read one journey: its editable draft definition, status, live currentVersion and whether the draft has unpublished changes.
  • Create journey draft: Create a journey as an unpublished draft. definition = { trigger { eventTypes[], segmentIds[] }, entryNodeId, nodes[], allowReentry? }. Nodes: delay { delay { mode duration, minutes } | { mode time_of_day, time HH:MM, fallbackTimezone }, next }, branch { condition contact_field | event (withinDays) | segment (member/not_member), yes, no }, send { templateRef, purpose, topicKey (required unless transactional), messageCategory (transactional), next }, split { arms [{ key, weight 0-100, next }] (2-5), holdoutPercent 0-50 } (A/B test: hash of experiment and contact picks the arm; holdout exits), goal { eventType } (journey-wide: a goal event exits the contact as converted), exit. The draft is saved even when the graph is incomplete; problems[] lists what publish would reject. Nothing is enrolled or sent.

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.