NEAR AI Cloud: Preview a user erasure: blockers and what would be erased (Admin only, read).
POST /v1/admin/users/{user_id}/erasure/preview Preview a user erasure: blockers and what would be erased (Admin only, read). Deprecated: this endpoint is moving to cloud-platform at the same path; the cloud-platform base URL will be announced. Behaviour may differ in edge cases.
Admin permissions: admin session, read_write token, or read_only token. Approved read across organizations; does not mutate business state.
Parameters:
- user_id (path, string, required): User ID.
Responses: 200: Erasure preview
- blockers (array of ErasureBlocker, required)
organization_id, code:
- code (string, required): one of sole_owner_of_shared_org
- organization_id (string, uuid, required) organization_id, code:
- code (string, required): one of staking_active
- organization_id (string, uuid, required) count, code:
- code (string, required): one of active_admin_tokens
- count (integer, int64, required)
- erased_organizations (array of object, required)
- api_keys (integer, int64, required)
- conversations (integer, int64, required)
- files (integer, int64, required)
- id (string, required)
- lifecycle (string, required): Organization state derived from
organizations.is_activeand its membership rows. Serialized asactive,deletedorerased(public API vocabulary). one of active, deleted, erased - workspaces (integer, int64, required)
- lifecycle (string, required): Account state derived only from operator-owned columns (
users.is_active+users.auth_provider). Serialized asactive,deactivatedorerased; this lowercase spelling is part of the public API vocabulary. one of active, deactivated, erased - log: one of
option 1: null
ErasureLogResponse:
- erased_at (string, date-time, required)
- requested_at (string, date-time, required)
- retained_organizations (array of object, required)
- id (string, required)
- role (string, required)
- user_id (string, required) 401: Unauthorized 403: Missing admin privileges (forbidden) or insufficient token permission (insufficient_permissions). 404: User not found 500: Internal server error