Skip to main content

Quick start

1. Create an API token​

  1. Sign in to namebeta.com with an account on the Pro, Business or Enterprise plan. An account on the Free plan gets 403 plan_required.
  2. Open API tokens in your account panel, give the token a name and create it.
  3. Copy the token, which starts with nb_live_. It is shown only once.
  4. Make it available to your code as an environment variable:
export NAMEBETA_API_TOKEN="nb_live_…"

Authentication covers revoking and rotating tokens.

2. Check one domain​

curl https://api.namebeta.com/v1/domains/kettlory.com/availability \
-H "Authorization: Bearer $NAMEBETA_API_TOKEN"

The response:

{
"domain": "kettlory.com",
"status": "available",
"checked_at": "2026-11-13T08:00:00.000Z"
}

status is one of available, taken, reserved, forsale or unknown; Check availability explains each. The request counted one unit against your check quota.

3. Check several domains at once​

Send up to 50 domains in one request. Each valid domain counts one check unit.

curl https://api.namebeta.com/v1/domains/availability \
-H "Authorization: Bearer $NAMEBETA_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"domains":["kettlory.com","kettlory.io","kettlory"]}'

Results come back in the order you sent them. An input that is not a domain is answered in place rather than failing the whole request, and is not counted:

{
"results": [
{
"domain": "kettlory.com",
"status": "available",
"checked_at": "2026-11-13T08:00:00.000Z"
},
{
"domain": "kettlory.io",
"status": "available",
"checked_at": "2026-11-13T08:00:00.000Z"
},
{
"domain": "kettlory",
"error": {
"code": "invalid_domain",
"message": "A full domain name with a known TLD is required."
}
}
]
}

Next steps​

  • Quotas: how much you can call, and what to do with 429.
  • Errors: every error code and what to do about it.
  • Reference: every endpoint, parameter and field.
  • The OpenAPI document, to generate a client or import the API into Postman or Insomnia.