returning api