## TL;DR

A wrong base_url produces DNS failure, 404, or 401-on-handshake - surface it to the user instead of retrying.

## Steps

1. Per the Wiz API reference: the endpoint is tenant-specific. Get the data center from Profile, Tenant Info - never guess.

## When to use

You are seeing this: Per the Wiz API reference: the endpoint is tenant-specific. Use this skill when you run into "Wiz API calls fail with DNS errors or 401s - you are hitting the wrong data-center endpoint".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- https://api.YOUR-DC.app.wiz.io
