You have to supply basic auth headers like below :
curl -D- \
-X GET \
-H "Authorization: Basic xxxxyyyzzz" \
-H "Content-Type: application/json" \
"https://your-domain.com/rest/api/v1"
“xxxxyyyzzz” is the username:password base64 encoded