implement methods for keys-endpoint