NEAR AI Cloud: Erase a user (GDPR Art. 17). Irreversible. Run the preview first. Admin session only.
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 only. Both read_only and read_write admin tokens receive HTTP 403 with error.type forbidden.
Find erasure records by the erased person's email or user id (Admin session only).
The email travels in the body, never the URL. No match is a 200 with an empty list. Source: https://docs.near.ai/api-reference/admin/find-erasure-records-by-the-erased-persons-email-or-user-id-admin-session-onlythe-email-travels-in-the-body-never-the-url-no-match-is-a-200-with-an-empty-list
/api-reference/openapi.json post /v1/admin/user-erasures/lookup 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 only. Both read_only and read_write admin tokens receive HTTP 403 with error.type forbidden.
POST /v1/admin/users/{user_id}/erasure Erase a user (GDPR Art. 17). Irreversible. Run the preview first. Admin session only. 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 only. Both read_only and read_write admin tokens receive HTTP 403 with error.type forbidden.
Parameters:
- user_id (path, string, required): User ID.
Request body (application/json):
- confirm_email (string, required): Must match the user's current email, ignoring case and surrounding whitespace. Typed by the operator as a guard against erasing the wrong id.
- requested_at (string, date-time): When the person asked (starts the GDPR response clock). Defaults to now.
Responses: 200: User erased (or already erased)
- already_erased (boolean, required)
- erased_organization_ids (array of string, 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 - user_id (string, required)
401: Unauthorized
403: Admin API tokens cannot erase Admin session required; admin tokens receive error.type forbidden.
404: User not found
409: Erasure blocked; body includes
blockers422: confirm_email mismatch 500: Internal server error