kutt - v4.0.0
    Preparing search index...

    Function getKuttUserInfoV2

    • Gets the authenticated user's information using the Kutt v2 API.

      Parameters

      • options: TAPIOptions = {}

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

      Returns Promise<TUserV2>

      The user's API key, email, and domains with normalized dates.

      HTTPError If the API returns an unsuccessful HTTP response.

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

      import { getKuttUserInfoV2 } from "kutt";

      const user = await getKuttUserInfoV2({ apiKey: "YOUR_API_KEY" });
      console.log(user.email);