Soumo31428/Django-API_Key_Management ? reverse-engineered prompt
Reverse engineered prompt
Build me a Django backend for a SaaS app that handles sign up, login, email verification, password reset, and session management with JWTs. I also need API key support where keys are shown only once, stored safely, and can be rotated or revoked later.
The app should support subscription plans like Free, Pro, and Enterprise, with quotas, plan based rate limiting, and a way to upgrade, downgrade, or cancel. It should keep track of usage and request history, and show simple dashboard endpoints for things like current plan, usage summaries, and recent requests.
Please include generated API docs, a clean error response format, and request IDs on every response for tracing. Use PostgreSQL, Redis, and background jobs for things like email and daily usage rollups. Make it production ready, with tests, sensible defaults, and a README that explains how to run it locally. Look up current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit