Return api in the right place