SDK Installation
The SDK can be installed with either npm, pnpm, bun or yarn package managers.
yarn add @unkey/api zod
# Note that Yarn does not install peer dependencies automatically. You will need
# to install zod as shown above.
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.