Scheduled API monitoring with the CI you already have
Tests that run on pull requests tell you whether a change broke something. They don't tell you that a dependency started returning errors at 2 a.m., that a certificate is about to break a partner integration, or that staging has been down since Friday. For that you need something that runs on a schedule, whether or not anyone pushed code.
You don't need a separate monitoring product to start. Your CI can run a collection on a schedule, and the Requestarium CLI turns that run into a check with history and alerts.
The scheduled job
Here's GitHub Actions. Every CI has an equivalent (see the end of this post).
name: API monitor
on:
schedule:
- cron: '0 * * * *' # every hour
workflow_dispatch:
jobs:
monitor:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm install -g @requestarium/cli
- env:
REQUESTARIUM_TOKEN: ${{ secrets.REQUESTARIUM_TOKEN }}
API_KEY: ${{ secrets.PROD_READONLY_API_KEY }}
run: |
requestarium run-collection "Orders API" --folder Monitor --env Production \
--env-var API_KEY --retries 2 --max-p95 800 --save-runWhat to put in the Monitor folder
Monitoring is not regression testing. Keep a small folder of requests that are:
- Read-only. Health checks,
GETon key resources, a search. Never create real orders in production on a timer. - Representative. One request per critical dependency: database, cache, payment provider, search.
- Checked properly. Not just "status is 200", but "the response has items":
pm.test('search returns results', () => {
pm.expect(pm.response.code).to.equal(200);
pm.expect(pm.response.json().items.length > 0).to.equal(true);
});Use a read-only API key for production, and pass it with --env-var from your CI's secrets, so it's never stored anywhere else.
Getting alerted
A scheduled run that fails quietly is useless. Pick at least one:
- CI notifications. GitHub, GitLab and others email on a failed scheduled workflow. Make sure the right people are subscribed.
- Jira issues. Add
--jira-on-failure OPSand a failing run files an issue, or comments on the open one. See File Jira issues automatically when API tests fail. - Run notifications. Notify on the collection's Runs tab sends a message about runs from the app, the CLI, CI, schedules and trigger URLs.
- Run history. With
--save-run, each run is stored with its timing and results.requestarium runs "Orders API"shows the last runs at a glance, and the collection's run history in the app shows the same.

Show the status where people look
Status badge on the same tab gives you a link to an image with the result of the last run. Put it in a README or a wiki page, and everyone sees whether the API is healthy without opening anything:

Catch slowness, not just outages
--max-p95 800 fails the run when the 95th percentile response time goes over 800 ms. Slow is often the first sign of broken, and a monitor that only checks status codes won't see it coming. More in Set a performance budget for your API tests.
Avoid false alarms
--retries 2resends requests that hit a 502, 503 or 504, with backoff, so a rolling deploy doesn't page anyone. A 500 is never retried.- Run the monitor from a CI region close to your users, not from the other side of the world.
- Don't schedule more often than you'll react. Hourly is plenty for most teams; nightly is fine for staging.
The same schedule in other CI systems
| CI | Schedule |
|---|---|
| GitHub Actions | on: schedule: - cron: '0 * * * *' |
| GitLab CI | Build → Pipeline schedules, then rules: - if: $CI_PIPELINE_SOURCE == "schedule" |
| Jenkins | triggers { cron('H * * * *') } |
| Bitbucket Pipelines | Pipelines → Schedules on a custom pipeline |
| CircleCI | A scheduled trigger in Project Settings → Triggers |
| Azure Pipelines | A schedules: block with a cron expression |
When to outgrow this
CI-based monitoring runs from one place, at most every few minutes, and depends on your CI being up. It's a great start and enough for many small teams. When you need checks from several regions every minute, or on-call paging, add a dedicated uptime service for the critical endpoints, and keep the collection-based monitor for the deeper checks.