leave as user api