https://api.amplitude.com/api/2/deletions/users
Uses basic auth
Request a user be scheduled for deletion, up to 100 users can be specified at a time. A mix of amplitude ids and user ids is permitted.
amplitude_ids
- amplitude ids to be deleted
user_ids
- user ids to be deleted
requester
- who is making the request. Useful for auditing
application/x-www-form-urlencoded
- amplitude_ids
& user_ids
arguments can be given multiple times
application/json
- Request body should be a json object like:
{
"amplitude_ids": [...],
"user_ids": [...],
"requester": ""
}
> curl -s -u API_KEY:SECRET_KEY --data amplitude_ids=1234567890 --data requester='somebody' 'http://localhost:3001/api/2/deletions/users' | json_pp
{
"day" : "2018-02-04",
"amplitude_ids" : [
{
"requested_on_day" : "2018-01-26",
"amplitude_id" : 1234567890,
"requester" : "somebody"
}
],
"status" : "staging"
}
List deletion jobs scheduled in a time range
start_day
- YYYY-MM-DD
end_day
- YYYY-MM-DD
Largest permitted timerange is six months.
> curl -s -u API_KEY:SECRET_KEY 'http://localhost:3001/api/2/deletions/users?start_day=2018-01-15&end_day=2018-02-15' | json_pp
[
{
"day" : "2018-02-04",
"status" : "staging",
"amplitude_ids" : [
{
"requested_on_day" : "2018-01-26",
"amplitude_id" : 1234567890,
"requester" : "somebody"
}
]
}
]