What are credits?
Credits are the currency of the NameGrid platform. The conversion is straightforward: 1 credit = $1 USD.- Registration — spending credits registers a new domain under your workspace.
- Renewal — spending credits extends your domain’s expiry date.
- Atomic deduction — credits are debited in a single atomic operation. If your balance is too low, the entire request fails immediately and no credits are deducted. Credits are never partially reserved or oversold.
Because debits are atomic, you will never end up with a partially registered domain and a negative balance. Either the full cost is available and the operation proceeds, or it isn’t and nothing changes.
Checking your balance
CallGET /v1/account at any time to see your current credit balance.
credits object in the response reflects your real-time balance:
When credits are charged
Credits are charged at two points in the domain lifecycle: Domain registration — credits are debited when you callPOST /v1/domains. The response includes a creditsCharged field so you know exactly what was spent:
POST /v1/domains/{domain}/renew. The same creditsCharged field appears in the renewal response.
If your balance is insufficient at the time of either request, the API returns a 402 Payment Required error with details about the shortfall:
The
required field in the 402 response tells you exactly how many credits you need. Use it to calculate the top-up amount before retrying.