kutt - v4.0.0
    Preparing search index...

    Function createKuttDomainV2

    • Creates a custom domain using the Kutt v2 API.

      Parameters

      • domain: TNewDomainV2

        The custom domain address and optional homepage URL.

      • options: TAPIOptions = {}

        Per-request base URL, API key, and timeout in milliseconds. Omitted settings use KUTT_CONFIG.

      Returns Promise<TDomainV2>

      The domain, with createdAt and updatedAt converted to Date objects.

      HTTPError If the API returns an unsuccessful HTTP response.

      If the request fails, times out, or the response cannot be decoded.

      import { createKuttDomainV2 } from "kutt";

      const domain = await createKuttDomainV2(
      { address: "go.example.com", homepage: "https://example.com" },
      { apiKey: "YOUR_API_KEY" },
      );