SDK Installation

The SDK can be installed with either npm, pnpm, bun or yarn package managers.
npm add @unkey/api
This package is published with CommonJS and ES Modules (ESM) support.

Requirements

For supported JavaScript runtimes, please consult RUNTIMES.md.

SDK Example Usage

Example

import { Unkey } from "@unkey/api";

const unkey = new Unkey({
  rootKey: process.env["UNKEY_ROOT_KEY"],
});

async function run() {
  const result = await unkey.apis.createApi({
    name: "payment-service-production",
  });

  console.log(result);
}

run();

Repository

GitHub

The full autogenerated documentation can be found on GitHub.