Cron Jobs

Configure scheduled jobs for API key usage maintenance.

Required GitHub secrets

  • API_BASE_URL
  • CRON_SECRET

Workflows

  • Hourly: sync-api-keys-cache
  • Monthly: reset-api-usage

These call backend endpoints:

  • POST /sync-api-keys-cache
  • POST /reset-api-usage

Both require x-cron-secret header.

Expected outcome

Usage counters stay synchronized and monthly limits reset correctly.

Common errors

ErrorCauseFix
401 from cron endpointSecret mismatchAlign GitHub secret and backend CRON_SECRET
Workflow fails to reach APIWrong API_BASE_URLUpdate secret to deployed backend base URL

Related pages

Whitepapper

Whitepapper is an API first CMS engine for devs who publish content.

Antk i n