Skip to main content
Unkey provides a simple feature rich API key management system. You can use Unkey to protect your public APIs with ease. Below is an example of implementing Unkey in your API.
import { Unkey } from "@unkey/api";

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

async function run() {
  const result = await unkey.keys.verifyKey({
    key: "sk_1234abcdef"
  });

  console.log(result);
}

Features

Below are some of the key features of Unkey API key management system, for you to explore.