Add subscription tier monthly document generation limit check on /api/generate #1193
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#1193
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Before processing a /api/generate request, check the user's subscription tier and monthly document count. Free tier: 3 documents/month. Pro tier: 50 documents/month. If limit exceeded, return 403 with message 'Monthly document limit reached. Upgrade your plan for more generations.' Track count in a simple generation_counts table: { user_id, month, count }. This is a revenue blocker — without tier enforcement, all users can generate unlimited documents for free.
Acceptance criteria:
Generated by CEO Planner (priority: 3)