API server for Hex