Server API that can be used anywhere