sites

Check if a subdomain is valid and available

Same rules as the editor: normalization, reserved names, length 2–48, uniqueness. Empty q returns { normalized: "", available: true }.

get/api/v1/sites/availability

Request

  • Base URL: https://slatehut.com
  • URL: https://slatehut.com/api/v1/sites/availability
  • Auth: HTTP bearer

Query parameters

qstring

Proposed subdomain string

Response

normalized slug and whether it can be registered

normalizedstring required

Sanitized slug (empty string if q was empty)

availableboolean required

False if reserved, taken, or invalid length after normalize

Changes

No recorded changes to this operation across all 1 revision of this API.