Userpilot supports data deletion to comply with the right to be forgotten under GDPR. Under this right, a user can request to delete all their data. Userpilot supports this right for all users, not just those in Europe. You can use the Deletion APIs to schedule a job to delete user or company data.Documentation Index
Fetch the complete documentation index at: https://docs.userpilot.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorization
Userpilot API uses API tokens to authenticate requests. You can view your API key in the Environment Page. Authentication Method: Include your API key in theAuthorization header:
All API requests must be made over HTTPS.
Version
You must send the API version in the headers:Endpoints
For most users, the HTTP API endpoint URL ishttps://analytex.userpilot.io as the examples show. If you are on Enterprise or EU hosting, refer to the Environment Page in the application to retrieve your dedicated endpoint.
1. Delete Users
Endpoint:The endpoint URL uses the
analytex environment. For EU data residency, use
analytex-eu instead. See Environment
Settings for your specific endpoint.| Header | Value | Required |
|---|---|---|
Content-Type | application/json | Yes |
Authorization | Token {YOUR_API_KEY} | Yes |
X-API-Version | 2020-09-22 | Yes |
| Field | Type | Required | Description |
|---|---|---|---|
users | array | Yes | List of user IDs to be deleted |
2. Delete Companies
Endpoint:The endpoint URL uses the
analytex environment. For EU data residency, use
analytex-eu instead. See Environment
Settings for your specific endpoint.| Header | Value | Required |
|---|---|---|
Content-Type | application/json | Yes |
Authorization | Token {YOUR_API_KEY} | Yes |
X-API-Version | 2020-09-22 | Yes |
| Field | Type | Required | Description |
|---|---|---|---|
companies | array | Yes | List of company IDs to be deleted |
Response
A successful request will schedule your delete job and return a202 Accepted status with a message indicating how many users or companies have been scheduled for deletion.
Example Response:
Deletions are scheduled to be executed every 24 hours (daily at 2:00 AM UTC).
Rate Limits
The Delete API has the following rate limit:- Delete Operations: 1 request every 2 seconds for delete operations
429 Too Many Requests error.