All API errors
Status 401

invalid_key

The API key is not valid

Why it happens

The key in Authorization: Bearer is not valid, was regenerated, or its account has no active plan. The API never falls back to the free tier for a call that meant to use a key.

What to do

Copy the current key from the API section of your Account settings, and check that the plan is active. Regenerating a key ends the old one at once.

Example

401 · application/problem+json
{
  "type": "https://unique.domains/api/problems/invalid_key",
  "title": "The API key is not valid",
  "status": 401,
  "detail": "This API key is not valid, was regenerated, or its account has no active plan. The API section of your Account settings shows the current key.",
  "instance": "/v1/names/harbor.io",
  "code": "invalid_key"
}

Ask AI about Unique Domains