Preparing the API actions.