To get inactive and deleted users, you might want to use Get all users API (notice the trailings in users of /users/search). There’s an active boolean field to indicate if the user is inactive, however, filtering of results will be done in your code and not part of any request parameters.