Sometimes API gives a error : cURL error 6: Could not resolve host: api.pipedrive.com

SYSTEM INFORMATION
OS type and version Ubuntu Linux 20.04.2
Virtualmin version 7.3-1 Pro

Looks like a DNS issue,

Point your DNS servers to Google’s or Cloudflare DNS Server IPs in your Network settings and you’ll be good.