I'm using the api to list user keys and while there is at least 1 ssh key i get empty result.My use case is still for bitbucket server (DC) API
curl -w "%{http_code}" -u "root:$BITBUCKET_ADMIN_TOKEN" \-X GET 'https://bitbucket.dev.smurf.com/rest/ssh/latest/keys?userName=my-user'{"size":0,"limit":25,"isLastPage":true,"values":[],"start":0}200
Also, the docs omit the information, that the API endpoint only works with local Bitbucket admin account used for authorization.
It looks like you're new here. Sign in or register to get started.