Put the api at the initialization