@grepvine/sdk
    Preparing search index...

    Class GrepvineClient

    A Grepvine client: every API operation is a method of one of its resources.

    apiKey authenticates requests and endpoint defaults to https://api.grepvine.ai. The client reads no environment variables or configuration files. Failed requests are retried according to retry, and an error answer is thrown as an APIError subclass.

    import { GrepvineClient, paginate } from "@grepvine/sdk";

    const client = new GrepvineClient({ apiKey: "gvk_..." });
    for await (const org of paginate(client.organizations.list, {})) {
    console.log(org.name, org.role);
    }

    After Account.login, the client sends the session's cookie (in Node.js) and CSRF token instead of the API key until Account.logout.

    Hierarchy

    • GrepvineApi
      • GrepvineClient
    Index
    endpoint: string

    The API endpoint requests go to, ending in /v1.