formatted user api to compact