Skip to main content

Documentation Index

Fetch the complete documentation index at: https://unkey.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

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 { meta, data } = await unkey.apis.createApi({
    name: "payment-service-production",
  });

  console.log(data);
}

run();

Repository

GitHub

The full autogenerated documentation can be found on GitHub.
Last modified on April 7, 2026