API to logged users