Skip to main content
This guide walks you through everything you need to go from zero to a registered domain using the NameGrid API. By the end you’ll have an API key, you’ll know how to check whether a domain is available, and you’ll have registered your first domain — all from the command line.
1

Create an API key

Every request to the NameGrid API must include an API key. To generate one:
  1. Sign in to your dashboard at app.namegrid.org.
  2. Go to Settings → API tokens.
  3. Click Create token, give it a descriptive name (e.g. my-first-key), and confirm.
  4. Copy the key immediately — it is displayed only once.
Your key looks like this:
NameGrid stores only a hash of your API key, not the raw value. If you lose your key, revoke it from the dashboard and create a new one.
2

Check domain availability

Before registering, confirm the domain you want is available. Send a POST request to /v1/domains/check with a list of domain names:
Response:
Each result tells you whether the domain is available and whether it carries a premium price. Only proceed to registration with domains where "available": true.
3

Register a domain

Once you’ve confirmed availability, register the domain with a POST to /v1/domains. Include a contact object with the registrant’s details — this is required by ICANN for all new registrations.
NameGrid uses a credit-based billing model where 1 credit = $1. Make sure your account has enough credits before registering. Check your balance in the dashboard or via the Account API.
Response:
The creditsCharged field confirms how many credits were deducted. The domain is active immediately — you can start managing DNS records right away.
4

List your domains

To see all domains registered under your workspace, send a GET request to /v1/domains:
The response returns a list of your domains with their status, expiry dates, and renewal settings. Use this endpoint to build dashboards, trigger renewal reminders, or audit your portfolio.

Next steps

You’ve registered your first domain — here’s where to go from here:
  • Manage DNS records — add A, CNAME, MX, and TXT records to your domain.
  • Renew a domain — manually renew or verify auto-renewal is configured.
  • Authentication — learn about API key security, workspace scope, and rate limits.
  • API Reference — explore every available endpoint with full parameter documentation.