Skip to main content
The NameGrid REST API gives you programmatic control over domain registration and DNS management. Every resource — from checking availability to updating nameservers — is accessible over HTTPS using standard JSON request and response bodies. This reference covers everything you need to start making authenticated requests right away.

Base URL

All API requests are made to the following base URL:
Until your domain is fully configured, the API is also reachable at https://app.namegrid.org/api/v1. Both URLs are functionally identical and accept the same requests.

Authentication

The NameGrid API uses API keys for authentication. Pass your key in the x-api-key header with every request:
Requests made without a valid key, or with a revoked key, will receive a 401 Unauthorized response. See the Authentication guide for instructions on generating and managing your API keys.

Rate Limits

Each API key is limited to 30 requests per 60 seconds. If you exceed this limit, the API returns a 429 Too Many Requests response. Your request window resets on a rolling basis, so you can resume sending requests as older ones fall outside the 60-second window.
If you anticipate needing higher throughput, consider batching operations where supported — for example, the Check Availability endpoint accepts up to 20 domains in a single request.

Error Responses

All error responses share a consistent JSON shape:
When a 402 error occurs, the response also includes required (the credit cost of the operation) and balance (your current credit balance) to help you understand exactly how many credits you need:
The table below lists every status code the API may return and what it means:

Endpoints Overview

Domains

Check availability, register, list, update, and renew domains. Manage nameservers and WHOIS privacy settings.

DNS Records

Create, read, update, and delete DNS records for any domain in your workspace.

Account

Retrieve your workspace details, credit balance, and API key metadata.