New API function get-keys