Skip to main content

Users

A reader is a tenant end-user. RSMG Engage creates the record the first time it sees an identified request for that reader, such as their first comment.

Read readers​

  • GET /api/v1/users/{externalId} reads a reader by your own id. Any API key can call it.
  • GET /api/v1/users/id/{userId} reads a reader by the internal id.
  • GET /api/v1/users lists readers with cursor paging. Filter with lifecycleStatus and since.

The last two need an API key with at least one admin capability. A key with an empty capability set gets 403.

Ban readers​

These routes use the internal userId and need the ban_users capability on the API key.

  • POST /api/v1/users/id/{userId}/ban stops the reader from posting or reacting.
  • POST /api/v1/users/id/{userId}/shadow-ban keeps the reader's posts visible to them but hides them from other readers.
  • POST /api/v1/users/id/{userId}/unban lifts a ban.

Export a reader's data​

GET /api/v1/users/by-external/{externalId}/export
X-API-Key: ek_…

The key needs the export_user_data capability. The response is a JSON file download. It holds the reader's user record, comments, reactions, comment reports, moderation actions and preferences. Each export is written to the audit log.

Anonymise a reader​

POST /api/v1/users/id/{userId}/anonymize
X-API-Key: ek_…
Idempotency-Key: <uuid>

The key needs the anonymize_users capability. This route takes the internal userId, not your external id. It removes the reader's personal data and marks the record anonymized. This cannot be undone. The route supports Idempotency-Key: repeating a request with the same key replays the first response. A key that is not a UUID returns 400 BAD_REQUEST.

Inactivity lifecycle​

RSMG Engage acts on readers who have been inactive for a while. Warn and deactivate count from the reader's last activity. Anonymise counts from deactivation. The defaults are:

AfterAction
180 days of inactivityWarn
270 days of inactivityDeactivate
365 days after deactivation (about 635 days after last activity)Anonymise

Each tenant can change these through /api/v1/settings. Each step sends a webhook event: user_warn_threshold_reached, user_deactivated and user_anonymized. See User lifecycle events.