The API server for the brainery application