x-api-key request header. There are no OAuth flows or session tokens — just a single long-lived key that you generate in the dashboard and include with each call. Keep your keys secret and rotate them promptly if they are ever exposed.
Generating an API key
- Sign in to your dashboard at app.namegrid.org.
- Navigate to Settings → API tokens.
- Click Create token and give it a descriptive name (e.g.
production,staging, orci-pipeline). - Copy the key from the confirmation screen.
Using your API key in requests
Pass your key in thex-api-key header on every request. The examples below show how to do this in common environments.
Workspace scope
Each API key is scoped to the workspace it was created in. A request made with a key from Workspace A can only read and modify resources — domains, DNS records, and account details — that belong to Workspace A. If you send a request for a domain that belongs to a different workspace, the API returns 404 Not Found rather than 403 Forbidden. This behavior is intentional: revealing that a resource exists but is forbidden would leak information about another customer’s workspace. Treat 404 responses as “not found or not accessible.”Rate limits
NameGrid enforces a rate limit of 30 requests per 60 seconds per API key. If you exceed this limit, the API returns
429 Too Many Requests. Wait for the current 60-second window to reset before retrying, or distribute load across multiple keys if your use case requires higher throughput.