Read reader mail records and stored updates

Inspect stored mail-processing records or account updates. Mail rows belong to the selected publication; updates can include records from other publications associated with the shared account.

TaskOperationReturned records
Read mail records for the selected publicationGET /api/v1/admin/users/{user_id}/mailsPaginated stored mail rows
Read stored updates for a readerGET /api/v1/admin/users/{user_id}/updatesPaginated account updates, potentially from several publications

Existing context and examples

Use the API address, token and publication public key supplied by your operator. Send the key in resource. Allowed roles: readonly, manager, support, admin, partner; root is also permitted. Service accounts cannot use these routes, including those with full_access. Keep privileged calls in trusted server code.

InputLocation / typeMeaning
resourceRequired header, publication public-key stringCaller’s publication context. Mail rows use this publication; update rows can include other publications associated with the account. Not a numeric ID or secret.
tokenRequired header, existing authorized token stringADMIN_TOKEN in examples. Use an eligible existing identity.
user_idRequired digits-only path valueReader ID from your intended audience records. Use a known nonzero ID.

The caller must be active; a current caller/publication relationship, when present, must not be locked or suspended. Confirm the intended reader and follow your publication’s rules for handling account records.

Examples use fictional reader 1002, mail 9001, update 9101 and publication 2001. Requests use cURL, Node.js 18+ fetch in an ES module (.mjs), and Python 3 urllib. Set WALLKIT_API_BASE to scheme and host only, plus existing RESOURCE_KEY and ADMIN_TOKEN. Numeric publication IDs are not header keys. Excerpts omit bodies, tracking values and diagnostic payloads.

Both lists use the common paginator: current_page, page, total_pages, total_items and limit. Row order is unspecified. Paging does not provide a complete or immutable audit trail.

Read stored mail records for a publication’s reader

GET /api/v1/admin/users/{user_id}/mails

Inspect mail records for this reader and publication. A row can describe waiting, failed or successful send processing; it does not confirm inbox delivery or human reading.

Before you call

Use an eligible Admin/root token and a reader with a relationship to this publication. Rows match the stored account ID and publication ID, rather than the account’s current email.

Request

No body is needed.

Query inputType / requirementMeaning and constraints
pageOptional integer; send 1 explicitlySend a positive page, such as 1. The omitted-page default is unspecified.
limitOptional integer; default 10Send a positive page size, such as 10. This reference does not specify a maximum.

The supported query inputs are page and limit. Do not assume newest-first or stable page order.

Response fields

HTTP 200 returns stored mail rows in items, plus paginator. User, event and template objects are not expanded. Fields follow the deployed row mapping. Stored IDs and flags are not universally converted to JSON numbers/booleans, and nullable fields can be null.

FieldType / meaning
idStored identifier for the mail row, distinct from the account ID.
typeStored mail/event category string; not sender identity.
user_idAssociated account identifier. It is not the caller/admin sender or a guarantee about the current email address.
resource_idStored publication identifier; this read filters it to the selected publication.
template_idStored template reference, not an expanded template.
event_idStored event reference, not a full event record.
invite_idStored invitation reference when present, not a code or proof of redemption.
emailStored recipient text; can differ from the account’s current email or contain multiple processing/debug recipients.
subjectStored subject text.
bodyStored message content; not a delivery receipt.
statusStored processing-outcome string. Known producer values include wait, sent, error and failed; not a guaranteed closed historical enum. sent reflects the sender’s success result, not confirmed inbox delivery.
errorsStored processing error details, potentially null; not a universal structured error schema.
viewedStored count of tracking-image requests, not a verified count of human reads.
viewed_atFirst recorded tracking-image request timestamp when present; not delivery time or verified human-open time.
created_atStored mail-processing timestamp; can be reassigned during processing. Timezone is unspecified.
hashStored tracking lookup value, not an authentication/session credential.
checksumStored deduplication value, not an authentication/session credential.

Tracking image requests may be automated or repeated. Neither a positive count nor a zero/missing count proves whether a person read the message. Messages without a stored account association are absent even if their recipient address matches. Treat this as stored processing data, not complete correspondence history.

Example: Inspect a stored send result

Publication 2001 has one matching row. The excerpt omits body, tracking values and unrelated references; field definitions appear above.

curl "${WALLKIT_API_BASE}/api/v1/admin/users/1002/mails" \
  -X GET \
  -H "resource: ${RESOURCE_KEY}" \
  -H "token: ${ADMIN_TOKEN}" \
  --get \
  --data-urlencode 'page=1' \
  --data-urlencode 'limit=10'
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/users/1002/mails`);
url.search = new URLSearchParams({"page": "1", "limit": "10"}).toString();
const response = await fetch(url, {
  method: "GET",
  headers: {"resource": process.env.RESOURCE_KEY, "token": process.env.ADMIN_TOKEN}
});
console.log(response.status, await response.json());
import os, json
from urllib.request import Request, urlopen
from urllib.error import HTTPError
from urllib.parse import urlencode

url = os.environ["WALLKIT_API_BASE"] + "/api/v1/admin/users/1002/mails"
url += "?" + urlencode({'page': '1', 'limit': '10'})
request = Request(
    url,
    headers={"resource": os.environ["RESOURCE_KEY"], "token": os.environ["ADMIN_TOKEN"]},
    method="GET"
)
try:
    with urlopen(request) as response:
        print(response.status, json.load(response))
except HTTPError as error:
    print(error.code, json.load(error))

HTTP 200 response excerpt:

{
  "items": [
    {
      "id": 9001,
      "user_id": 1002,
      "resource_id": 2001,
      "email": "reader@example.com",
      "subject": "Example reader message",
      "status": "sent",
      "viewed": 0,
      "viewed_at": null,
      "created_at": "2026-10-31 12:00:00"
    }
  ],
  "paginator": {
    "current_page": 1,
    "page": 1,
    "total_pages": 1,
    "total_items": 1,
    "limit": 10
  }
}

sent is a stored processing result. viewed: 0 and viewed_at: null do not establish whether mail was read or delivered.

No mail rows match this reader and publication

HTTP 200 excerpt, paginator omitted:

{
  "items": []
}

The target check succeeded but no rows matched this page. Mail may still exist outside this account/publication selection.

Recovery

HTTP statusAPI code / response shapeCauseNext action
404user_not_exists when returnedThe reader was not found in the selected publication.Check the known account ID and existing publication relationship. Some misses can instead fail before this JSON branch.
200items [] with paginatorNo selected rows on the returned page.Display the empty state; check page and selected publication before concluding there are no matching stored records.
404data [] without a specific codeMail lookup did not return the expected result object.Check context and retain the request reference if available for operator investigation; do not treat this as a delivery result.
Varies / no guaranteed JSONReader lookup, query, response-format or transport failureFailure responses can vary.Check known reader/publication context, then ask the integration operator to inspect the failure.

See shared caller/context errors. Use these rows to inspect processing outcomes. To inspect account updates, read the next route’s broader publication scope first. Neither route sends or resends mail.

Read stored updates for a reader

GET /api/v1/admin/users/{user_id}/updates

Read stored updates associated with the shared reader account. Results can include another publication’s ID or null publication context. Check each row’s resource_id before displaying or processing it.

Use these as stored records rather than a complete audit or before/after change log. The account in the path is not necessarily the actor for every row.

Before you call

Use an eligible Admin/root token and the intended reader’s known nonzero ID. A row’s user_id identifies its associated account, rather than necessarily identifying the person who performed the action.

Request

No body is needed.

Query inputType / requirementMeaning and constraints
pageOptional integer; send 1 explicitlySend a positive page, such as 1. The omitted-page default is unspecified.
limitOptional integer; default 10Send a positive page size, such as 10. This reference does not specify a maximum.

Use page and limit to read the stored rows. No date-range, filter or sort option is supported for this reader-specific task. Order is unspecified; this is not a chronological event stream.

Response fields

HTTP 200 returns stored history rows in items, plus paginator. Fields depend on stored row definitions rather than a fixed endpoint list. The table describes known fields; nested payloads can vary.

FieldType / meaning
idStored history-row identifier.
user_idStored associated account identifier used by this read. Does not establish the actor of every action.
resource_idStored publication/context identifier, potentially null or different from the selected publication.
event_nameStored event label string when present; not proof every event was recorded.
created_atStored row timestamp; timezone unspecified. Not an immutability/retention guarantee.
owner_idStored owner/actor identifier when included by the row mapping; no guaranteed identity resolution or equivalence to caller/target.
es_statusStored indexing-status value, not business success, permission or completion of every event.
es_indexStored indexing-context text when present; not an audit completeness indicator.
es_errorStored indexing error details; nested fields vary. Handle these as confidential diagnostic data.
es_paramsOpaque stored indexing payload. Nonempty stored JSON is decoded; decoded objects/arrays/scalars/null are possible, while empty values can remain empty. Handle this as confidential diagnostic data.
es_responceLiteral API spelling for opaque stored indexing response, with the same nonempty-JSON decoding caveat. Invalid JSON can decode to null. Nested fields vary; handle this as confidential diagnostic data.

Values keep their stored types. changes, type, comments, ip and complete actor/target links are not guaranteed. Apply your application’s confidential-data handling rules to diagnostic payloads and errors. The example omits those values.

Example: Inspect a stored update

The example uses reader 1002 and publication 2001 from the intended authorized context. The excerpt omits diagnostic payloads, event labels and conditional attribution. Other returned rows can have a different or null publication context; inspect their resource_id as described above.

curl "${WALLKIT_API_BASE}/api/v1/admin/users/1002/updates" \
  -X GET \
  -H "resource: ${RESOURCE_KEY}" \
  -H "token: ${ADMIN_TOKEN}" \
  --get \
  --data-urlencode 'page=1' \
  --data-urlencode 'limit=10'
const url = new URL(`${process.env.WALLKIT_API_BASE}/api/v1/admin/users/1002/updates`);
url.search = new URLSearchParams({"page": "1", "limit": "10"}).toString();
const response = await fetch(url, {
  method: "GET",
  headers: {"resource": process.env.RESOURCE_KEY, "token": process.env.ADMIN_TOKEN}
});
console.log(response.status, await response.json());
import os, json
from urllib.request import Request, urlopen
from urllib.error import HTTPError
from urllib.parse import urlencode

url = os.environ["WALLKIT_API_BASE"] + "/api/v1/admin/users/1002/updates"
url += "?" + urlencode({'page': '1', 'limit': '10'})
request = Request(
    url,
    headers={"resource": os.environ["RESOURCE_KEY"], "token": os.environ["ADMIN_TOKEN"]},
    method="GET"
)
try:
    with urlopen(request) as response:
        print(response.status, json.load(response))
except HTTPError as error:
    print(error.code, json.load(error))

HTTP 200 response excerpt:

{
  "items": [
    {
      "id": 9101,
      "user_id": 1002,
      "resource_id": 2001,
      "created_at": "2026-10-31 12:00:00"
    }
  ],
  "paginator": {
    "current_page": 1,
    "page": 1,
    "total_pages": 1,
    "total_items": 1,
    "limit": 10
  }
}

The row is associated with reader 1002. It does not identify an actor or prove a business change succeeded.

No update rows are returned

HTTP 200 excerpt, paginator omitted:

{
  "items": []
}

An empty page does not prove that no action or event occurred. These stored rows do not provide a complete audit.

Recovery

HTTP statusAPI code / response shapeCauseNext action
404user_not_existsThe reader account was not found.Check the known nonzero reader ID against existing account records.
200items [] with paginatorNo rows on this returned page.Display an empty stored-record state and check pagination; do not infer absence of all historical activity.
404data [] without a specific codeHistory-row lookup did not return the expected result object.Retain the request reference if available for operator investigation; do not interpret it as proof that the reader never changed.
Varies / no guaranteed JSONDatabase/paginator/response-format or transport failureFailure responses can vary.Ask the integration operator to inspect the failure with the request reference if available.

See shared caller/context errors. For current account data, use the Admin email lookup with the reader’s stored email and selected publication. Stored update rows do not reconstruct a guaranteed complete current state.

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