Humanloop API

The Humanloop API allows you to interact with Humanloop and model providers programmatically.

You can do this through HTTP requests from any language or via our official Python or TypeScript SDK.

First you need to install and initialize the SDK. If you have already done this, skip to the next section. Otherwise, open up your terminal and follow these steps:

  1. Install the Humanloop TypeScript SDK:

    $npm install humanloop
  2. Import and initialize the SDK:

    1import { HumanloopClient, Humanloop } from "humanloop";
    2
    3const humanloop = new HumanloopClient({ apiKey: "YOUR_API_KEY" });
    4
    5// Check that the authentication was successful
    6console.log(await humanloop.prompts.list());

Guides and further details about key concepts can be found in our docs.

Built with