# Impacttech

Teleskope integrates with Impact Tech’s API to fulfill **Delete User** DSRs by removing a participant (identified by email) from an Advocate Program.

## Requirements

In order to integrate Teleskope with Impact Tech for DSR requests, you must have:

* Your **Impact Account SID** (used as the Basic Auth username).
* Your **Impact Auth Token** (used as the Basic Auth password).
* Your **Advocate Program ID**.
* *(Optional)* **API URL override**
  * Defaults to `https://api.impact.com`. Provide a custom base URL only if your environment requires it.
* The user’s **email address** as the identifier.

{% hint style="info" %}
Retrieval is not supported by this integration.
{% endhint %}

### Integrating with Impacttech

To integrate Teleskope with Impact Tech:

1. Navigate to **Data Subject Rights → Third Party Integrations** and pick **Impact Tech**.
2. Enter the required fields for the integration and click **Save**:
   * **Account SID** (required)
   * **Auth Token** (required)
   * **Program ID** (required)
   * **API URL** (optional; leave blank to use `https://api.impact.com`)

### Parameter Defaults

* When Teleskope sends a **Delete User** request to Impact Tech, it includes these parameters by default:
  * **HTTP Method**: `DELETE`
  * **Endpoint**:

    ```
    {apiUrl}/Mediapartners/{accountSid}/Advocate/Programs/{programId}/Participants
    ```
  * **Authentication**: Basic Auth
    * username = `accountSid`
    * password = `authToken`
  * **Headers**:
    * `Content-Type: application/json`
    * `Accept: application/json`
  * **Request Body**:

    ```json
    { "email": "<identifier.email>" }
    ```
  * **Expected success codes**: `200` or `204`
* **Default Identifier for Impact Tech = `email`**

### Behavior and Notes

* The handler sends a **single DELETE** call to remove the participant tied to the provided **email** in the specified **Program ID**.
* If the API response is not `200`/`204`, the error (including response body) is surfaced for troubleshooting.
* On success, Teleskope logs the operation and returns a standard “vendor deletion request submitted” message.

#### Helpful Links

[impact.com: Delete participants from your Adovcate program](https://help.impact.com/en/support/solutions/articles/155000000318-delete-participants-from-your-advocate-program)

[Impact Advocate API](https://integrations.impact.com/impact-brand/reference/opendeleteuser)
