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.
Request Body:
Example Request:
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.
Request Body:
Example Request:
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.