basic api for keys, stats and server version