Skip to content

namecheap-dns

Use when managing DNS records or domains via Namecheap API — getHosts/setHosts record management, domain registration, transfers, SSL certificates, or WHOIS. Critical — setHosts replaces ALL records, must GET first then SET complete list.

ModelSource
sonnetpack: dns
Full Reference

┏━ 🔧 namecheap-dns ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Use when managing DNS records or domains via N… ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

Namecheap XML API (February 2026). All requests are HTTP GET with query string params. Responses are XML — no JSON. IPv4 whitelist required for all requests. setHosts replaces the entire record set — always GET first, then SET the complete modified list.

ItemValue
Base URL (production)https://api.namecheap.com/xml.response
Base URL (sandbox)https://api.sandbox.namecheap.com/xml.response
FormatHTTP GET, XML responses
Auth4 global query params on every request
IP whitelistIPv4 only — enable at Profile → Tools → API Access
Rate limit~20 req/min soft limit
Docshttps://www.namecheap.com/support/api/intro/
I want to…File
Authenticate and set up credentialsreference/auth.md
Manage DNS records with getHosts and setHostsreference/records.md
Manage domains, transfers, SSL, and WhoisGuardreference/domains.md
Handle errors and rate limitsreference/errors-and-limits.md

Usage: Read the reference file matching your current task from the index above. Each file is self-contained with code examples and inline gotchas.