- (API) Refactored the order in which the onBeforeSend methods are sent. The api schedule is now triggered before the api type.