π’ GET - AI Articles Quota
Get AI Articles Quota
Calculate AI articles quota for one-time burst creation
GET
Calculates how many AI articles the cron job should create. Uses a one-time burst architecture that creates all 1,000 articles on the first cron run after signup.
Authentication: Requires internal API key (
This ensures new customers get their full content library immediately after signup.
X-API-Key header).
How It Works
The system uses a one-time burst model:- First cron run after signup: Creates all 1,000 articles in one batch
- Subsequent runs: Returns 0 quota (already completed for the week)
Products only - AI articles are created for products, not the business
entity itself. All articles are deployed to the businessβs AI site.
One-Time Burst Architecture
Unlike a daily distribution model, this architecture front-loads all content creation:| Scenario | Quota Returned |
|---|---|
| First run of the week (no articles yet) | 1,000 articles |
| Any subsequent run (articles exist) | 0 articles |
Product Distribution (Round-Robin)
The 1,000 articles are distributed across products using round-robin:- Products are ordered by
article_count(ascending) - Products with fewest articles get priority
- Articles are distributed evenly across all products
- Each product gets 20 articles (1000 Γ· 50)
- Products with fewer existing articles are prioritized
- Each product gets 5 articles (1000 Γ· 200)
- All products get coverage in a single burst
Query Parameters
The organization slug (business_id)
Response
The organization slug
Start of current week (Monday) in YYYY-MM-DD format
End of current week (Sunday) in YYYY-MM-DD format
Total weekly target (1000)
Articles already created this week
Total number of products for this organization
Array of product quotas
Total articles to create (1000 or 0)
Always βone-time-burstβ
Human-readable status message
Integration with Cron
The cron job uses this quota API to determine article creation:- Calls this API to get the quota
- If
total_daily_quota > 0: Creates articles for each product in parallel - All articles are deployed to the businessβs AI site
- Subsequent cron runs return 0 quota until next week
- New customers: Get all 1,000 articles immediately
- Existing customers: No redundant work on subsequent runs
- Weekly reset: Quota resets each Monday for ongoing content freshness