Topolo Docs Topolo Platform
Open workspace

Disconnect an event source

Delete the source's TopoloNotify webhook subscription (app_topolo_notify.webhooks.subscriptions.delete) as the caller and mark the source disconnected. Events already recorded are kept. Repeating it on a disconnected source is harmless.

Outcome

Delete the source's TopoloNotify webhook subscription (app_topolo_notify.webhooks.subscriptions.delete) as the caller and mark the source disconnected. Events already recorded are kept. Repeating it on a disconnected source is harmless.

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:write; required workspace access is admin. 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.
  • Obtain authorization for the documented effect or personal-data export before supplying CLI --confirm or MCP confirm:true.

Discover the target

topolo whoami --json
topolo actions get app_topolo_nurture.event_sources.disconnect --detail --json
topolo resources topolo-nurture --json
topolo workspaces list topolo-nurture --json
topolo actions get app_topolo_nurture.event_sources.list --detail --json
  • id: event sources record id in the selected workspace.

Request

POST /api/event-sources/{id}/disconnect

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
idRequiredstringevent sources record id in the selected workspace. {"minLength":1,"maxLength":64}

Exact input schema:

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

Effects

  • Deletes the Notify subscription, then sets the source status to disconnected; deliveries to it are refused from then on.

Interpret the response

The returned identifier path is $.source.id for event_source. Empty lists do not discover a target.

Call app_topolo_nurture.event_sources.list and confirm the source status is disconnected.

Exact success schema:

{
  "type": "object",
  "required": [
    "source"
  ],
  "properties": {
    "source": {
      "type": "object",
      "required": [
        "id",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "sourceAppId": {
          "type": "string"
        },
        "notifyEventType": {
          "type": "string"
        },
        "lifecycleEventType": {
          "type": "string"
        },
        "notifySubscriptionId": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "active",
            "disconnected"
          ]
        },
        "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:

{
  "id": "src_20303d3e8b944ab4baca2f340753f807"
}

CLI:

topolo actions validate app_topolo_nurture.event_sources.disconnect --data @payload.json --json
topolo actions plan app_topolo_nurture.event_sources.disconnect --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_nurture.event_sources.disconnect --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --confirm --json

MCP tool and arguments:

{
  "tool": "topolo_call_action",
  "arguments": {
    "actionId": "app_topolo_nurture.event_sources.disconnect",
    "input": {
      "id": "src_20303d3e8b944ab4baca2f340753f807"
    },
    "resourceType": "workspace",
    "resourceId": "<identifier returned by resource discovery>",
    "confirm": true
  }
}

Captured local response · HTTP 200:

{
  "source": {
    "id": "src_20303d3e8b944ab4baca2f340753f807",
    "organizationId": "org_a",
    "workspaceId": "ws_a",
    "sourceAppId": "app_topolo_auth",
    "notifyEventType": "platform.welcome",
    "lifecycleEventType": "signup",
    "notifySubscriptionId": "whs_1",
    "status": "disconnected",
    "createdAt": "2026-10-04T00:32:37.734Z",
    "updatedAt": "2026-10-04T00:32:37.738Z"
  }
}

HTTP 200. Call app_topolo_nurture.event_sources.list and confirm the source status is disconnected.

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": "src_pending"
}

CLI:

topolo actions validate app_topolo_nurture.event_sources.disconnect --data @payload.json --json
topolo actions plan app_topolo_nurture.event_sources.disconnect --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_nurture.event_sources.disconnect --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --confirm --json

MCP tool and arguments:

{
  "tool": "topolo_call_action",
  "arguments": {
    "actionId": "app_topolo_nurture.event_sources.disconnect",
    "input": {
      "id": "src_pending"
    },
    "resourceType": "workspace",
    "resourceId": "<identifier returned by resource discovery>",
    "confirm": true
  }
}

Captured local response · HTTP 200:

{
  "source": {
    "id": "src_pending",
    "organizationId": "org_a",
    "workspaceId": "ws_a",
    "sourceAppId": "app_topolo_auth",
    "notifyEventType": "platform.welcome",
    "lifecycleEventType": "signup",
    "notifySubscriptionId": null,
    "status": "disconnected",
    "createdAt": "x",
    "updatedAt": "2026-10-04T00:32:37.775Z"
  }
}

HTTP 200. Call app_topolo_nurture.event_sources.list and confirm the source status is disconnected.

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": "src_b5259970a14246d986560980685ed07a"
}

CLI:

topolo actions validate app_topolo_nurture.event_sources.disconnect --data @payload.json --json
topolo actions plan app_topolo_nurture.event_sources.disconnect --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json

Captured local response · HTTP 404:

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

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

Refused request · notify_unavailable

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": "src_392c955b112042ce80f09a9dde4da52f"
}

CLI:

topolo actions validate app_topolo_nurture.event_sources.disconnect --data @payload.json --json
topolo actions plan app_topolo_nurture.event_sources.disconnect --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json

Captured local response · HTTP 502:

{
  "error": {
    "code": "notify_unavailable",
    "message": "TopoloNotify refused the webhook subscription request (503).",
    "details": {
      "notifyStatus": 503
    }
  }
}

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

Refused request · notify_not_configured

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": "src_392c955b112042ce80f09a9dde4da52f"
}

CLI:

topolo actions validate app_topolo_nurture.event_sources.disconnect --data @payload.json --json
topolo actions plan app_topolo_nurture.event_sources.disconnect --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json

Captured local response · HTTP 503:

{
  "error": {
    "code": "notify_not_configured",
    "message": "TopoloNotify is not configured for this Nurture deployment."
  }
}

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

Verify the result

  • Call app_topolo_nurture.event_sources.list and confirm the source status is disconnected.

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 event sources to find a valid id in this workspace.
  • notify_unavailable (HTTP 502): TopoloNotify refused or failed the webhook request (see error.details.notifyStatus). Check the credential may manage Notify webhook subscriptions in this workspace, then retry.
  • notify_not_configured (HTTP 503): This deployment has no NOTIFY_BASE_URL or NURTURE_PUBLIC_URL; report it to the platform operator.

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

A disconnected source cannot be reactivated; connect the same pair again with app_topolo_nurture.event_sources.connect.

  • List event sources: List the Notify event sources connected (or previously connected) in the caller's Nurture workspace, newest first.

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.