GDPR Deletion API
Use this API to upload a list of user IDs whose data should be scrubbed.
Table of Contents
The General Data Protection Regulation (GDPR) is a European law that ensures several rights for people whose data crosses EU borders. Among these rights is the right to erasure. Under this right, a user may demand that a data processor delete all data about them.
Appcues has complied with the GDPR since it took effect in May 2018. We respect the rights it guarantees, and offer this functionality to all Appcues customers, not only for EU residents.
To make it easier for our customers to comply with the GDPR, Appcues offers a GDPR Deletion API for scheduling the deletion of end user data. This API lets you upload a list of user IDs whose data should be deleted.
The API is usable from any programming language or environment that supports making HTTP POST requests. We'll provide examples using the popular Curl command-line tool.
Before you start
You'll need three things:
- Your Appcues account ID. You can find it on your Account page .
- An API key and secret. Create these on the API Keys page. You can create and revoke keys yourself at any time, so we recommend creating a dedicated key for GDPR deletion requests.
-
Your region's base URL:
- US: https://api.appcues.com
- EU: https://api.eu.appcues.com
To schedule users for deletion, make a POST request to https://api.appcues.com/v2/accounts/ACCOUNT_ID/gdpr/delete, replacing ACCOUNT_ID with your account ID (and the base URL with your region's, if you're in the EU). Authenticate with HTTP Basic Auth, using your API key as the username and your API secret as the password. In the examples below, Curl's -u API_KEY:API_SECRET flag handles this for you.
Uploading user IDs as JSON
To pass a list of user IDs in JSON format, the request looks like this:
curl https://api.appcues.com/v2/accounts/ACCOUNT_ID/gdpr/delete \
-u API_KEY:API_SECRET \
-H 'Content-type: application/json' \
-d '{"users": ["user_id_1", "user_id_2", "user_id_3"]}'
The users list must contain at least one user ID. The user IDs should be the same as what you use in our SDK,
e.g.: Appcues.identify("user_id_1", { ... });
Uploading user IDs as CSV
You can also upload a CSV file of user IDs, with one user ID per line. Upload it as a multipart file upload using the file field, as shown in the following Curl request (assuming the file is called "users.csv"):
curl https://api.appcues.com/v2/accounts/ACCOUNT_ID/gdpr/delete \ -u API_KEY:API_SECRET \ -F file=@users.csv
Response
For both JSON and CSV requests, Appcues responds with the following once your request is accepted:
{"status": 202, "title": "Accepted"}
A 202 response means your users have been scheduled for deletion. Deletion happens in the background, and no job ID is returned to track it.
If something goes wrong, you'll receive an error response with details, for example:
{"error": true, "status": 401, "title": "Unauthorized", "detail": "..."}
A 401 means your API key or secret is missing or invalid. A 403 means your credentials don't grant access to the account ID in the URL. A 400 usually means the request body is malformed or the user list is empty.
Next steps
That's it. Once Appcues accepts your request, the deletions are typically processed within the same day. In rare cases with high queue volume or an API disruption, that window can stretch a bit further.
For more information, see Request GDPR Deletion of Users in the Appcues Public API reference.