You need a root key with the permissions listed on this page. Create one in the dashboard under Settings > Root Keys, and pass it as
Authorization: Bearer <root key>. See Permission reference for every permission.Packages
The TypeScript, Go, and Python clients match the API reference, so method names and fields line up across languages. The Python client () covers API Management only. The TypeScript and Go clients also cover Compute.
Which package to use
@unkey/api, the Go SDK, or the Python SDK when you call several endpoints or want full types.@unkey/honoor@unkey/nextjswhen you only need to check incoming requests for a valid key. They callkeys.verifyKeyand give your handler the result.@unkey/ratelimitto rate limit user IDs or IP addresses without issuing keys. It adds a timeout and fallback so a network problem can’t block your function.@unkey/cachefor typed caching in your own services. It doesn’t call the Unkey API.
One client, both products
The TypeScript and Go clients cover Compute too, so the sameUnkey instance that a key can create a deployment for a Compute . The Go SDK page shows the same pair in Go. From Python, call Compute endpoints over HTTP. The endpoints are keys.verifyKey and deployments.createDeploymentV3.
Response shape
Every successful response hasmeta.requestId (quote it when you contact support) and data, the result. Errors are thrown or returned as typed errors per HTTP status. Each SDK page shows how to catch them. See API overview for the raw format.
Next steps
@unkey/api
Install, construct, verify and create keys, handle errors.
Go SDK
go get the v3 module the CLI uses.Python SDK
unkey.py with sync and async clients.