> For the complete documentation index, see [llms.txt](https://help.smartico.ai/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.smartico.ai/welcome/technical-guides/data-integration/clear-pii-data-gdpr-compliance.md). Agents can also search and read this documentation through its [MCP server](https://help.smartico.ai/welcome/~gitbook/mcp).

# Clear PII data / GDPR compliance

## How to clean GDPR

***

There are three ways to erase a user's personal data from Smartico: the **Back Office UI**, the **REST API**, or a **CSV import** for bulk requests. All methods trigger the same process — data is permanently removed within 24 hours. The cleanup job runs once a day, so in some cases it can take a little longer.

For details on all available user profile fields and how they are synchronized, see the [User profile properties](https://help.smartico.ai/welcome/technical-guides/data-integration/user-profile-properties.md) documentation.

> ⚠️ **Important:** Smartico deletes data only from its own database. If your platform continues sending profile updates for that user after the request, the data will be restored on the next sync. You must stop sending events for that user from your side before or immediately after submitting the request.

***

### Option 1 — Back Office UI (single user)

1. Open the user's profile in the Back Office.
2. Click the **Clear PII/GDPR Data** shield icon button next to **First / Last name** in the **Personal information** section. Back Office users without the permission for this action do not see the button.
3. Confirm the action with **Yes, Clear All Data**. You will then see: *"All personal information will be permanently deleted within 24 hours."*

***

### Option 2 — REST API (single user or automated workflow)

Use this method when you want to integrate GDPR erasure into your own automated workflow.

#### Endpoint

```http
POST https://apisX.smartico.ai/api/external/events/v2
Authorization: <your private API key>
Content-Type: application/json
```

Authentication via your **private API key** in the `Authorization` header. The key and the exact URL are shown in the Back Office in **Tools** → **Data management** → **Rest API**.

#### Request payload

```json
{
  "eid": "unique-request-id-per-call",
  "event_date": 1717508861954,
  "ext_brand_id": "your_brand_id",
  "user_ext_id": "the_user_id_in_your_system",
  "event_type": "update_profile",
  "payload": {
    "core_is_gdpr_cleanup_requested": true
  }
}
```

| Field          | Description                                                                          |
| -------------- | ------------------------------------------------------------------------------------ |
| `eid`          | A unique ID you generate for each request (UUID or similar — used for deduplication) |
| `event_date`   | Current Unix timestamp in **milliseconds**                                           |
| `ext_brand_id` | Your brand identifier (shown in **Tools** → **Data management** → **Rest API**)      |
| `user_ext_id`  | The user's ID as known in your platform                                              |

### Option 3 — Bulk erasure via CSV import

This is the recommended approach for processing many users at once. No coding required.

#### 1. Prepare the CSV file

Create a plain text, comma-separated file with the following columns:

```csv
user_ext_id,core_is_gdpr_cleanup_requested
user_001,true
user_002,true
user_003,true
```

Rules to follow:

* No quotation marks around any values
* `user_ext_id` must match exactly the user IDs your platform sends to Smartico
* The boolean value must be `true` or `1`
* If your brand has multiple sub-brands with non-unique user IDs, add a `core_sm_brand_id` column with the Smartico brand ID (a number) for each row. This column is ignored when the **Import segments by user ID only (ignore brand column)** setting in **Label settings** is ON (the default). With this setting ON, a row matches the users with that ID on every brand of the label. If the same user ID can exist on more than one brand, ask your Success manager to turn the setting OFF before the import, or use the REST API with `ext_brand_id` instead

#### 2. Upload the CSV in the Back Office

1. Go to **Marketing → Segments**
2. Create a new segment and choose **Import segment** (see [Imported Segments](https://help.smartico.ai/welcome/products/crm-automation/segmentation/imported-segments.md))
3. Enter a **Segment name** and click **Upload** to upload your CSV file
4. Smartico will validate the first 20 rows immediately — any formatting errors will be shown at this stage
5. Smartico then checks all rows. When you see **Validation completed successfully**, click **Import**
6. The segment status will change to **Importing** while all rows are processed
7. Once complete, open the **Users in CSV** tab to confirm how many users were successfully processed. Any rows that could not be matched to an existing user are also listed there with the status **No matching users**.

The GDPR cleanup flag is set for each successfully imported user. All matched accounts will be erased within 24 hours.

## What happens after the request

| Timeline        | Action                                                                                                                  |
| --------------- | ----------------------------------------------------------------------------------------------------------------------- |
| Immediately     | The erasure request is logged and the user is flagged                                                                   |
| Within 24 hours | All personal data fields are permanently erased                                                                         |
| Within 24 hours | Account is deactivated; all communication channels (email, SMS, push) are opted out; user is excluded from gamification |
| ✅ Complete      | The user's profile keeps the user ID from your platform; the personal data fields listed below are empty                |

The process is **irreversible**. There is no way to restore the data once deletion is complete, and Smartico will not be able to confirm the identity of an erased user after the fact. Please keep your own records of which users you have requested to be erased.

### Scope of erasure and custom properties

* **Standard PII only:** The automated cleanup permanently erases only the standard system profile properties listed below. If your platform synchronizes custom user properties containing personal data, you must explicitly clear them by sending an update profile request with `!` before each property name and the value `null` (for example `"!my_custom_property": null`). A CSV import can only overwrite text properties with an empty value; it cannot clear number or yes/no properties. A property sent with a plain `null` value is not cleared.
* **Public nickname reset:** Any custom public username is reset to the user's external ID to remove personal nicknames from leaderboards and tournament standings.
* **Historical transaction logs:** Analytical and transactional event history (such as gameplay and financial records) is retained with anonymized identifiers to preserve reporting and accounting continuity.

## What information is going to be cleared

**Group 1 — Personally Identifiable Information (PII)**

| Property             | Semantic meaning                        | Action  |
| -------------------- | --------------------------------------- | ------- |
| `user_email`         | User's email address                    | cleared |
| `user_first_name`    | First name                              | cleared |
| `user_last_name`     | Last name                               | cleared |
| `core_mail_domain`   | Derived email domain (e.g. `gmail.com`) | cleared |
| `user_phone`         | Phone number                            | cleared |
| `user_country`       | Country of registration                 | cleared |
| `user_birthdate`     | Date of birth                           | cleared |
| `core_user_gender`   | Gender                                  | cleared |
| `user_phone_country` | Phone country code                      | cleared |

**Group 2 — Behavioral / Session Fingerprint**

| Property                         | Semantic meaning                  | Action  |
| -------------------------------- | --------------------------------- | ------- |
| `core_user_first_seen_country`   | Country on first login            | cleared |
| `core_user_last_login_country`   | Country on last login             | cleared |
| `core_user_last_login_city`      | City on last login                | cleared |
| `core_user_last_session_browser` | Last browser used                 | cleared |
| `core_user_last_session_os_name` | Last OS used                      | cleared |
| `core_user_last_device_type`     | Last device type (mobile/desktop) | cleared |

**Group 3 — Account Status — set to explicit values**

| Property                             | Value set       | Semantic effect                           |
| ------------------------------------ | --------------- | ----------------------------------------- |
| `core_account_status`                | `'DEACTIVATED'` | Account blocked from activity             |
| `core_is_email_disabled`             | `true`          | Disable email channel (user preference)   |
| `core_is_sms_disabled`               | `true`          | Disable SMS channel (user preference)     |
| `core_is_email_disabled_by_platform` | `true`          | Disable email channel (platform override) |
| `core_is_sms_disabled_by_platform`   | `true`          | Disable SMS channel (platform override)   |
| `core_is_push_disabled_by_platform`  | `true`          | Disable push channel (platform override)  |
| `core_is_ivr_disabled`               | `true`          | Disable IVR/voice channel                 |
| `core_is_push_disabled`              | `true`          | Disable push channel (user preference)    |
| `ach_gamification_in_control_group`  | `true`          | Exclude user from gamification activities |
| `core_is_gdpr_cleanup_completed`     | `true`          | Flag indicating GDPR cleanup is complete  |

## Frequently Asked Questions

### How can I verify that a user's personal data has been erased?

Once the 24-hour cleanup job runs, the user's profile in the Back Office will show empty personal fields (email, name, phone, etc.), account status as deactivated, and the system property `core_is_gdpr_cleanup_completed` set to `true`. You can also create a Back Office segment filtering for `core_is_gdpr_cleanup_completed = true` to monitor processed users.

### Does the GDPR cleanup erase custom user properties?

No. The automated job only wipes standard built-in core fields. If you store personal data in custom properties, you must clear them manually by sending an update profile request with `!` before each property name and the value `null` (for example `"!my_custom_property": null`). A plain `null` value does not clear a property.

### What happens if our platform sends an event for a deleted user?

Smartico erases data only within its own database. If your platform continues sending events or profile syncs for that user ID, the cleared fields will be filled again by the next incoming event. You must stop sending events for that user on your side before or immediately after requesting deletion.

### Can I request the erasure again for the same user?

The cleanup runs only for users whose `core_is_gdpr_cleanup_completed` is not yet `true`. A second request for a user that was already processed is not run again. If personal data arrived for that user after the cleanup, clear those fields with `!` and `null` as shown above, or ask your Success manager.

### Will the user still be visible in past tournament leaderboards?

The user's public nickname is overwritten with their external identifier, and they are placed into the gamification control group to prevent any further gamification activity. Historical scores in past closed tournaments are retained for calculation integrity.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.smartico.ai/welcome/technical-guides/data-integration/clear-pii-data-gdpr-compliance.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
