---
title: "Run Notifications"
method: POST
path: "/api/cron/run-notifications"
tags: ["cron"]
---

# Run Notifications

`POST /api/cron/run-notifications`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/cron/run-notifications`
- Auth: none declared

Run the notification cron job. Called hourly by Railway cron.
Protected by X-Cron-Secret header.
Accepts both X-Cron-Secret and x-cron-secret header casing.

Cron command (scripts/cron_run_notifications.sh):
    curl -sS --fail --max-time 600 -X POST "$API_URL/api/cron/run-notifications" -H "X-Cron-Secret: $CRON_SECRET"

## Headers

- `X-Cron-Secret` string
- `x-cron-secret` string

## Response `200`

Successful Response

- CronResponse
  - `status` string, required
  - `users_checked` integer, required
  - `notifications_sent` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
