Skip to content
railsengines.com

API Keys

Secure API keys for your Rails app

No ratings yet
Gem
api_keys
Repository
rameerez/api_keys
License
MIT
Stars
39
Added
August 14, 2026

About

🔑 Secure API keys for your Rails app

api_keys makes it simple to add secure, production-ready API key authentication to any Rails app. Generate keys, restrict scopes, auto-expire tokens, revoke tokens, gate endpoints. It also provides a self-serve dashboard for your users to self-issue and manage their API keys themselves. All tokens are hashed securely by default, and never stored in plaintext.

What you get

  • self-issue new API keys
  • set expiration dates
  • attach scopes / permissions to individual keys
  • add and edit the key names
  • revoke instantly
  • see the status of all their keys

Mounting it

ruby
# Gemfile
gem "api_keys"

# config/routes.rb
mount ApiKeys::Engine, at: "/api-keys"

Details

39 stars on GitHub · MIT licensed · maintained by rameerez. Source: https://github.com/rameerez/api_keys

Discussion (0)

Sign in to join the discussion.

No comments yet.