# Create a Namecheap API key

> To connect Namecheap, InfraNest needs API access turned on, your API credentials, and InfraNest's IP address approved.

Source: https://infranest.io/docs/create-a-namecheap-api-key
Last updated: 2026-10-26

---

Connecting Namecheap to InfraNest requires a few things from your Namecheap account: API access turned on, your API credentials, and InfraNest's IP address approved. This article walks you through getting all three, and is meant for anyone setting up domain management in InfraNest.

## Overview
- Namecheap keeps API access off by default, so you'll need to turn it on yourself.
- You'll need to copy your API username and API key from Namecheap.
- Namecheap only accepts requests from approved IP addresses, so you'll need to whitelist InfraNest's.

## Turn on API access and get your key
1. Sign in to Namecheap.
2. Go to **Profile → Tools → API Access**.

<!-- manual-screenshot: create-a-namecheap-api-key-1 — taken by hand in the Namecheap dashboard; the capture rig cannot reach it -->

3. **Enable API access.** (Namecheap may first require a minimum balance or spend on your account.)
4. Copy your **API username** and **API key**.

<!-- manual-screenshot: create-a-namecheap-api-key-2 — taken by hand in the Namecheap dashboard; the capture rig cannot reach it -->

## Approve InfraNest's IP address
Namecheap only accepts API requests from approved IP addresses.

1. InfraNest shows the exact IP address to approve on the connect screen — copy it.
2. Add it to your **Whitelisted IP** list in Namecheap's API Access settings.

> [!NOTE]
> Namecheap also offers a sandbox for testing. Most people should use their normal account; only an admin can connect a sandbox account.

## Next step
Go back to InfraNest and follow **Connect** for Namecheap to enter your username and key and confirm the IP address.
