Kit.Domains Docs
API

Errors

Understanding API error responses

Error Response Format

{
  "error": {
    "code": 400,
    "message": "The \"name\" field is required."
  }
}

Some errors include additional details:

{
  "error": {
    "code": 400,
    "message": "Validation failed.",
    "details": {
      "name": "Invalid domain format."
    }
  }
}

HTTP Status Codes

CodeDescription
200Success
201Resource created
204Resource deleted (no content)
400Bad request — validation error or missing required field
401Unauthorized — missing or invalid API token
403Forbidden — you don't have access to this resource, or your plan doesn't include API access
404Not found — the resource doesn't exist
409Conflict — resource already exists (e.g., duplicate domain)
429Too many requests — rate limit exceeded
500Internal server error

Common Errors

Missing API Token

{
  "error": {
    "code": 401,
    "message": "API token is missing."
  }
}

Plan Upgrade Required

The REST API and the MCP server are available on the Pro and Business plans (and during the free trial). On any other plan the token is still valid, but every endpoint except GET /v1/account answers 403 with type: "plan_upgrade_required":

{
  "error": {
    "code": 403,
    "type": "plan_upgrade_required",
    "message": "API and MCP access is available on Pro and Business plans. Your current plan is Starter. Upgrade at https://app.kit.domains/profile/billing",
    "current_plan": "starter",
    "required_plan": "pro",
    "upgrade_url": "https://app.kit.domains/profile/billing"
  }
}

current_plan is one of free (no active subscription, e.g. after the trial ended), trial, hobby, starter, pro or business. Your token isn't revoked: it works again as soon as the account is on a plan with API access, so integrations don't need to be reconfigured.

Domain Already Exists

{
  "error": {
    "code": 409,
    "message": "Domain already exists."
  }
}

Rate Limit Exceeded

{
  "error": {
    "code": 429,
    "message": "Too many requests. Please retry after 30 seconds."
  }
}

Check the Retry-After header for the number of seconds to wait.

On this page