Answer
Basic Authentication generally isn't the supported path for calling IFS Cloud APIs from an external client — set up the documented OAuth client-credentials flow instead and use the resulting bearer token, rather than troubleshooting Basic Auth further. See authenticate and get access.