Manage and use API keys for secure programmatic access to your application’s resources.
zopio
framework includes a comprehensive API key management system integrated with Clerk.
zopio
is built on top of Clerk’s API key functionality and consists of:
@repo/api-key
) that handles API key creation and validation@repo/api-key
package provides the fundamental API key functionality:
api
app:
Endpoint | Method | Description |
---|---|---|
/api-keys | GET | List all API keys for the authenticated user |
/api-keys | POST | Create a new API key |
/api-keys | DELETE | Delete an API key by ID |
apiKeyAuthMiddleware
function provides a simple way to protect routes with API key authentication:
/api-keys
endpoint with the following payload: