Read saved CampaignMonitor lists

Review qualifying CampaignMonitor list choices saved for a publication. This reads saved configuration rather than a fresh provider catalog or a reader's list membership.

TaskOperationResult
Review saved list choicesGET /api/v1/admin/integrations/campaignmonitor/admin-listsSaved list rows with six configuration fields

Before you start

Use an existing active Wallkit staff caller authorized for the selected publication. Eligible roles are readonly, manager, support, admin and partner; root is also permitted. Service-account credentials are not supported. See credential transport.

InputLocation / typeRequirement and meaning
resourceRequired header, stringPublication public key, supplied as RESOURCE_KEY.
tokenRequired header, stringExisting authorized staff credential, supplied as STAFF_TOKEN; separate from stored provider authorization.
AcceptHeader, stringExamples request application/json; responses are JSON.

No body, reader ID, client/list ID, action-specific query, filter, force option or pagination control is needed. Shared integration initialization still applies even though this action reads saved rows. Resolved configuration can include partner settings; publication selection does not guarantee a separate provider account or establish/refresh authorization.

Set WALLKIT_API_BASE to the scheme and host only, without /api/v1, plus RESOURCE_KEY and STAFF_TOKEN. Examples use cURL, Node.js18+ built-in fetch in an ES module (.mjs) and Python3 urllib. All are synthetic and unexecuted; see sample runtimes. Commands print HTTP status only; JavaScript/Python retain parsed results without printing them. The JSON excerpts are illustrative.

Review saved list choices

GET /api/v1/admin/integrations/campaignmonitor/admin-lists

Read qualifying CampaignMonitor list choices saved for the selected publication. This call does not fetch a fresh provider catalog or look up a reader. Send the shared headers with no body, reader ID, filter or pagination input.

A saved row qualifies when any of show_list, require_list or allowed_list is enabled. Those configuration flags are not returned. The result is ordered by saved list_name, with no promised order for ties.

Result

HTTP 200 returns root items, an array containing exactly these six properties per qualifying row. An empty array means no saved rows qualified. There is no total or paginator.

FieldType / presenceMeaning and conditions
items[].idStored identifier scalar; presentLocal saved-list row ID. Do not use it as the provider list ID. Its JSON scalar type is not normalized by this operation.
items[].list_idStored identifier scalar; presentProvider list ID saved in that row. Its JSON scalar type is not normalized here.
items[].list_nameStored label, normally string; presentSaved list name used for ordering; it may be null.
items[].client_nameStored label, normally string; presentSaved provider client name; it may be null. No client ID is returned.
items[].confirmed_optStored configuration value; presentSaved confirmed-opt-in setting for the list, passed through without a fixed Boolean/enum schema. It is not a reader's confirmed opt-in or consent.
items[].unsubscribe_settingsStored configuration value; presentSaved setting associated with the provider client's policy for unsubscribing across all its lists (AllClientLists), passed through without a fixed Boolean/enum schema. It is not an unsubscribe request or result, or proof of current provider enforcement.

Stored values are returned as held; this read does not validate their types or establish provider freshness or complete provider-account coverage. It does not include selection flags, field mappings, reader subscribed/updating state or proof of consent.

Example: inspect a saved list

curl --silent --show-error \
  --output /dev/null --write-out '%{http_code}\n' \
  --header "Accept: application/json" \
  --header "resource: ${RESOURCE_KEY}" \
  --header "token: ${STAFF_TOKEN}" \
  "${WALLKIT_API_BASE}/api/v1/admin/integrations/campaignmonitor/admin-lists"
const response = await fetch(
  `${process.env.WALLKIT_API_BASE}/api/v1/admin/integrations/campaignmonitor/admin-lists`,
  {
    headers: {
      Accept: "application/json",
      resource: process.env.RESOURCE_KEY,
      token: process.env.STAFF_TOKEN,
    },
  },
);
console.log(response.status);
if (!response.ok) throw new Error("List discovery failed; review caller and integration context.");
const savedLists = await response.json();
import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    os.environ["WALLKIT_API_BASE"] + "/api/v1/admin/integrations/campaignmonitor/admin-lists",
    headers={
        "Accept": "application/json",
        "resource": os.environ["RESOURCE_KEY"],
        "token": os.environ["STAFF_TOKEN"],
    },
)
try:
    with urlopen(request) as response:
        print(response.status)
        savedLists = json.load(response)
except HTTPError as error:
    print(error.code)
    raise SystemExit(1)

Illustrative HTTP 200 excerpt with one fictional saved row. The final two Boolean values illustrate possible saved configuration representations; they do not define normalized response types or reader consent.

{
  "items": [
    {
      "id": 9201,
      "list_id": "list-demo",
      "list_name": "Weekly update",
      "client_name": "Demo publisher",
      "confirmed_opt": true,
      "unsubscribe_settings": false
    }
  ]
}

Here 9201 identifies the local saved row and list-demo identifies the provider list. The response says nothing about whether a particular reader belongs to that list. Matching names or list IDs across catalogs do not make either response a membership record.

If no saved rows qualify

Illustrative HTTP 200 result:

{"items": []}

Review the selected publication and its saved list choices with the integration administrator. This is a local configuration result; it does not report that the provider account is empty or establish that provider retrieval succeeded.

Recovery and next task

HTTP statusAPI code / response shapeCauseNext action
200items: []No saved rows qualified for the selected publication.Review the publication and saved choices with the integration administrator.
404resource_not_existsThe selected publication could not be resolved.Check the publication public key.
401Shared authentication/access errorMissing, expired, inactive or otherwise ineligible caller context.Check the existing staff credential and caller status.
403accessThe caller lacks access to this operation.Confirm staff permissions for the selected publication with its administrator.
Other failureSetup/processing error or an unreadable response; no single operation-specific code is promisedShared initialization or local processing did not complete.Ask the integration administrator to review the failure; do not treat it as an empty list result.

Next, review whether these saved choices match the publication you intended to inspect. Reader membership lookup and list changes are separate tasks; do not infer a reader's state or make a change from this configuration result alone.

Shared caller recovery

Use credential-context recovery for publication/caller problems and error conventions for shared error fields. A wrong publication key and an expired staff credential need different corrections. Keep the existing authorized caller/publication context and confirm the required staff permissions; provider configuration changes belong with the integration administrator.

Full diagram

Use the arrow keys to scroll. Escape closes this view.

Search documentation

Enter at least 2 characters.

    ↑ ↓ move through results · Enter opens · Escape closes