Add require() code to api