Check if the api key provided is for basic auth or not as it is redirecting to a basic auth ..and sometimes in api server basic auth might be disabled..check with greenhouse team
Manually did you try with postman with the above endpoints and creds?
Cheers