Skip to main content
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 (X-API-Key header).

How It Works

The system uses a one-time burst model:
  1. First cron run after signup: Creates all 1,000 articles in one batch
  2. 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: This ensures new customers get their full content library immediately after signup.

Product Distribution (Round-Robin)

The 1,000 articles are distributed across products using round-robin:
  1. Products are ordered by article_count (ascending)
  2. Products with fewest articles get priority
  3. Articles are distributed evenly across all products
Example with 50 products:
  • Each product gets 20 articles (1000 Γ· 50)
  • Products with fewer existing articles are prioritized
Example with 200 products:
  • Each product gets 5 articles (1000 Γ· 200)
  • All products get coverage in a single burst

Query Parameters

string
required
The organization slug (business_id)

Response

string
The organization slug
string
Start of current week (Monday) in YYYY-MM-DD format
string
End of current week (Sunday) in YYYY-MM-DD format
integer
Total weekly target (1000)
integer
Articles already created this week
integer
Total number of products for this organization
array
Array of product quotas
integer
Total articles to create (1000 or 0)
string
Always β€œone-time-burst”
string
Human-readable status message

Integration with Cron

The cron job uses this quota API to determine article creation:
  1. Calls this API to get the quota
  2. If total_daily_quota > 0: Creates articles for each product in parallel
  3. All articles are deployed to the business’s AI site
  4. Subsequent cron runs return 0 quota until next week
This one-time burst approach means:
  • 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