Build your API, not auth

Unkey allows you to quickly add API keys, rate limiting, and usage analytics to your API, so that you can safely expose it to developers.

2.7 K
Workspaces
5.4 K
APIs
37 K
Keys
23 M
Verifications

Code

Any language, any framework, always secure

Add authentication to your APIs in a few lines of code. We provide SDKs for a range of languages and frameworks, and an intuitive REST API with public OpenAPI spec.

1import asyncio
2import os
3import unkey
4
5async def main() -> None:
6 client = unkey.Client(api_key=os.environ["API_KEY"])
7 await client.start()
8
9 result = await client.keys.verify_key("prefix_abc123")
10
11 if result.is_ok:
12 print(data.valid)
13 else:
14 print(result.unwrap_err())
15

oss/acc

Empowering the community

Unkey allows open-source contributions through Github, enabing collaboration and knowledge sharing with all the developers in the world.

Platform

Efficient integration and process, always

Elevate operations effortlessly with our platform - seamless processes, reliable analytics, and billing ensure unparalleled efficiency and accuracy for all your integrated tasks and workflows

cURL
1curl --request GET \
2 --url https://api.unkey.dev/v1/keys.getKey \
3 --header 'Authorization: <authorization>'
4 {
5 "apiId": "api_1234",
6 "createdAt": 123,
7 "deletedAt": 123,
8 "expires": 123,
9 "id": "key_1234",
10 "meta": {
11 "roles": [
12 "admin",
13 "user"
14 ],
15 "stripeCustomerId": "cus_1234"
16 }
17 }
18

Realtime Analytics

Access real-time insights into your API usage through our dashboard, or build your own on top of our APi.

Global low latency

Unkey is fast globally, regardless of which cloud providers you’re using or where your users are located.

Andreascollected payments

2 s

Monetize your API

Unkey tracks all user actions in your API, making it straightforward to bill users based on their usage.

Security

Secure from day one

Don't waste time building boring-but-necessary features like audit logs. Unkey provides everything you need out of the box to build secure, infinitely scalable APIs.

One-way hashed Keys

Once API keys are created, Unkey will store a one-way hash of the key for maximum security.

TimeActorEventIP address

Audit Logs

Unkey gives you audit logs out of the box. Focus on building your API rather than security and compliance.

IP Whitelisting

Ensure secure access control by allowing only designated IP addresses to interact with your system, adding an extra layer of protection.p

1

2

3

4

5

6

{ "rateLimit": { "limit": 10, "interval": 1000 } }
Creating keys...

sk_TEwCE9AY9BFTq1XJdIO

Rate Limits

Implement granular control over access with custom rate limiting per key, preventing abuse and optimizing the performance of your services.

More

Leveled-up API Auth

Elevate your API authentication with our leveled-up system. Experience heightened security, efficiency, and control for seamless integration and data protection.

Multi-Cloud

Seamlessly scale and distribute your services with multi-cloud support, allowing you to use unkey with any cloud provider effortlessly.

Data Retention

Align data storage with compliance goals, customize retention for regulatory requirements, and effortlessly maintain data integrity.

API-first / UI-first

Enjoy flexibility and control with both API and user-friendly UI access, ensuring a smooth experience for developers and non-technical users alike.

Role-Based Access Control

Fine-tune access privileges with role-based control per key, enabling precise management and ensuring security at every level.

Detect and Protect

Take immediate control over your system's security with the ability to instantly revoke access keys, providing swift response to potential threats.

SDKs

Accelerate development with Software Development Kits (SDKs), providing tools for seamless integration processes.

Vercel Integration

Effortlessly deploy applications with Vercel integration, streamlining the development-to-deployment pipeline for optimal efficiency.

Automatic Key Expiration

Simplify key management with automatic key expiration, reducing the risk of unauthorized access over time.

Usage Limits per Key

Collaborate effectively within your organization by organizing teams, streamlining communication for group-based projects.

Protect your API. Start today.

2500 verifications FREE per month.

No CC required.