Schedule icon
Script icon
Process icon
Write icon
If icon
SlackIncomingWebhook icon

API Rate Limit Observer

Monitor API rate-limit response headers, store quota measurements, and alert Slack before exhaustion.

Categories
CoreInfrastructure

Avoid surprise 429 responses by polling an API endpoint and reading its remaining-quota header. Configure url, header_name, and warning_remaining. Authentication can be supplied through a custom header in a small task edit using {{ secret('API_TOKEN') }}.

Prerequisites: outbound HTTPS access and SLACK_WEBHOOK_URL. The endpoint must expose a numeric remaining-quota header. Run manually before enabling the hourly schedule; report stores the observed limit and threshold.

Links: Python Script, Slack. Created by yashspidey.

See How

New to Kestra?

Use blueprints to kickstart your first workflows.