Unkey Has a Free API That Most Developers Dont Know About

typescript dev.to

Unkey is an open-source API key management and rate limiting service. Create, validate, and revoke API keys with built-in analytics. Create API Key import { Unkey } from "@unkey/api"; const unkey = new Unkey({ rootKey: process.env.UNKEY_ROOT_KEY }); const { result } = await unkey.keys.create({ apiId: "api_123", prefix: "sk", name: "My App Key", ownerId: "user_456", meta: { plan: "pro" }, expires: Date.now() + 30 * 24 * 60 * 60 * 1000, // 30 days ratelimit: { type:

Read Full Tutorial open_in_new
arrow_back Back to Tutorials