Topolo Docs Topolo Platform
Open workspace

Apply suppression list import

Append a manual_block (default) or unsubscribed ledger event for every matched address in the CSV (same input as imports.suppression.preview) and report unmatched addresses, which are not blocked until they exist as contacts. Idempotent per idempotencyKey: repeating a key returns the first result and appends nothing.

Outcome

Append a manual_block (default) or unsubscribed ledger event for every matched address in the CSV (same input as imports.suppression.preview) and report unmatched addresses, which are not blocked until they exist as contacts. Idempotent per idempotencyKey: repeating a key returns the first result and appends nothing.

Before you start

  • Verify the intended environment, signed-in credential, authorized organization and the action permission workspace:write.
  • Discover and select an authorized canonical Engage workspace. Pass resourceType=workspace and resourceId separately from action input.
  • Review the exact effects and obtain approval before CLI --confirm or MCP confirm:true. A local capture does not authorize a live mutation.

Discover the target

topolo whoami --json
topolo actions get app_topolo_engage.imports.suppression.apply --json
topolo workspaces list topolo-engage --json

Set ENGAGE_WORKSPACE_ID to the identifier of the selected authorized workspace.

Input contract

FieldRequiredDeclared constraints
csvYes{"type":"string","minLength":1,"maxLength":2000000}
mappingNo{"type":"object","propertyNames":{"type":"string","maxLength":200},"additionalProperties":{"anyOf":[{"anyOf":[{"type":"string","const":"email"},{"type":"string","maxLength":80}]},{"type":"null"}]}}
typeNo{"type":"string","enum":["manual_block","unsubscribed"]}
idempotencyKeyYes{"type":"string","minLength":8,"maxLength":128}

Validate, plan and execute

Build payload.json from the current schema and discovered identifiers. The action description above defines its behavior, limits, side effects and declared errors.

: "${ENGAGE_WORKSPACE_ID:?Set ENGAGE_WORKSPACE_ID to your selected workspace identifier}"
topolo actions validate app_topolo_engage.imports.suppression.apply --data @payload.json --json
topolo actions plan app_topolo_engage.imports.suppression.apply --resource-type workspace --resource-id "$ENGAGE_WORKSPACE_ID" --data @payload.json --confirm --json

Review the plan and approve its exact effects before executing the unchanged request.

: "${ENGAGE_WORKSPACE_ID:?Set ENGAGE_WORKSPACE_ID to your selected workspace identifier}"
topolo actions call app_topolo_engage.imports.suppression.apply --resource-type workspace --resource-id "$ENGAGE_WORKSPACE_ID" --data @payload.json --confirm --json

For MCP, use topolo_get_action, topolo_validate_action, topolo_plan_action and topolo_call_action. Pass resource context separately where required; confirm:true is required for mutations.

Captured successful requests and responses

Captured HTTP 200 · contactability routes > suppression imports > applies once per key, blocking matched contacts

Action input

{
  "csv": "Email,Note\nada@acme.io,x\nnobody@acme.io,y\nnot-an-email,z\nADA@acme.io,dup",
  "type": "unsubscribed",
  "idempotencyKey": "supp-0001"
}

Actual local response

{
  "import": {
    "id": "suppressionImport_1",
    "idempotencyKey": "supp-0001",
    "type": "unsubscribed",
    "summary": {
      "rows": 4,
      "matched": 1,
      "unmatched": 1,
      "invalid": 1
    },
    "recorded": 1,
    "unmatched": [
      {
        "rowIndex": 1,
        "address": "nobody@acme.io"
      }
    ],
    "createdAt": "2026-10-01T12:00:00.000Z"
  }
}

Source test: contactability-routes.test.ts. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · contactability routes > suppression imports > applies once per key, blocking matched contacts

Action input

{
  "csv": "Email,Note\nada@acme.io,x\nnobody@acme.io,y\nnot-an-email,z\nADA@acme.io,dup",
  "mapping": {
    "Email": "email",
    "Note": null
  },
  "idempotencyKey": "supp-0002"
}

Actual local response

{
  "import": {
    "id": "suppressionImport_2",
    "idempotencyKey": "supp-0002",
    "type": "manual_block",
    "summary": {
      "rows": 4,
      "matched": 1,
      "unmatched": 1,
      "invalid": 1
    },
    "recorded": 1,
    "unmatched": [
      {
        "rowIndex": 1,
        "address": "nobody@acme.io"
      }
    ],
    "createdAt": "2026-10-01T12:00:00.000Z"
  }
}

Source test: contactability-routes.test.ts. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · contactability routes > suppression imports > applies once per key, blocking matched contacts

Action input

{
  "csv": "Email,Note\nada@acme.io,x\nnobody@acme.io,y\nnot-an-email,z\nADA@acme.io,dup",
  "idempotencyKey": "supp-0002"
}

Actual local response

{
  "import": {
    "id": "suppressionImport_2",
    "idempotencyKey": "supp-0002",
    "type": "manual_block",
    "summary": {
      "rows": 4,
      "matched": 1,
      "unmatched": 1,
      "invalid": 1
    },
    "recorded": 1,
    "unmatched": [
      {
        "rowIndex": 1,
        "address": "nobody@acme.io"
      }
    ],
    "createdAt": "2026-10-01T12:00:00.000Z"
  }
}

Source test: contactability-routes.test.ts. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Effects and response meaning

  • Append a manual_block (default) or unsubscribed ledger event for every matched address in the CSV (same input as imports.suppression.preview) and report unmatched addresses, which are not blocked until they exist as contacts. Idempotent per idempotencyKey: repeating a key returns the first result and appends nothing.

Verify the outcome

  • Check the response against the declared output schema and the requested operation. For mutations, use the action-specific read described in the action description before any dependent operation.

Recover

For an uncertain result, inspect current retained state with a read action before retrying. Do not replay a mutation unless its contract explicitly guarantees idempotency.

Refused requests

Captured HTTP 422 · contactability routes > suppression imports > refuses files it cannot use

Action input

{
  "csv": "Name\nAda",
  "idempotencyKey": "supp-0003"
}

Actual local response

{
  "error": {
    "code": "mapping_requires_email",
    "message": "Map exactly one column of the file to email."
  }
}

Source test: contactability-routes.test.ts. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Error recovery

  • HTTP 422 mapping_requires_email: Read the refusal details and current action contract, correct the stated cause, then validate and plan again. Do not retry unchanged or infer success.

Evidence and limits

  • /api/imports/suppression/apply

  • contactability-routes.test.ts

  • Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

  • Widget/bootstrap use actual app handler but mocked worker runtime and app identity.

  • No gateway execution, live permissions, external delivery or deployed proof.

These are local route captures with synthetic identity and simulated dependencies. They do not prove live authorization, gateway execution, production state, or external delivery.