api: get cryptokeys

fixes: #1882