@limitry/client - v0.4.1
    Preparing search index...

    Class Project

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Get current project

      Returns the project associated with the API key used for authentication.

      The project contains metadata about your organization's configuration, including:

      • Project ID and organization ID
      • Project name and slug
      • Creation and update timestamps

      This endpoint is useful for verifying your API key is valid and retrieving project details.

      Returns Promise<
          {
              createdAt: string;
              id: string;
              name: string;
              organizationId: string;
              slug: string;
              updatedAt: string;
          },
      >

      Project found

      const result = await client.project.get();
      console.log(result);

      Unauthorized - Invalid or missing API key

      Project not found

      If a network error occurs