def METHOD_NAME(self):
    payload = self._get(f"/domain/{self.domain}")
    if "error" in payload:
        raise AuthenticationError(
            f'{payload["error"]["code"]} {payload["error"]["message"]}'
        )
    if payload["data"]["exists"] == "N":
        raise AuthenticationError("No domain found")
    self.domain_id = payload["data"]["id"]