Deploy and secure your API globally with Unkey and Koyeb.
Koyeb is a developer-friendly serverless platform to deploy apps globally. Koyeb offers a fully managed environment to deploy any apps in seconds without managing any infrastructure. Koyeb supports any programming languages, frameworks, and tools to build your apps.
This example shows how to build an API using bun, secure it with unkey, and deploy it globally on Koyeb.
bun install
bun run dev
curl http://localhost:8000 -H "Authorization: Bearer <KEY>"
Replace the environment variable placeholders with real values from your Unkey dashboard.
Then hit the
Now that your app is deployed, you can test it:
curl -XPOST https://<YOUR_APP_NAME>-<YOUR_KOYEB_ORG>.koyeb.app -H "Authorization: Bearer <UNKEY_API_KEY>"
It should return a
{ "valid": true }