---
title: "Check Sla Warnings"
method: POST
path: "/admin/check-sla-warnings"
tags: ["admin"]
---

# Check Sla Warnings

`POST /admin/check-sla-warnings`

## Request

- Base URL: `https://api.openproof.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openproof.io/admin/check-sla-warnings`
- Auth: none declared

Checks all open grievances for approaching their statutory 90-day
deadline and sends a one-time warning email per grievance -- see
GrievanceLog.sla_warning_sent_at. Meant to be triggered daily by an
external scheduler (Railway Cron), not by regular users -- fails
closed via the shared-secret header, not human login.

## Headers

- `x-cron-secret` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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