Start api refacto