---
title: "Grade Date"
method: POST
path: "/api/grading/grade"
tags: ["grading"]
---

# Grade Date

`POST /api/grading/grade`

## Request

- Base URL: `https://api.fairline.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fairline.io/api/grading/grade`
- Auth: HTTP bearer

Grade all ungraded logical bets for a date. Idempotent — existing bet_results rows are skipped.

Also grades AI Blackbox picks (issue #157) into blackbox_pick_results, in
its own committed transaction so it cannot roll back the model's grading.
The morning cron calls this endpoint, so both run on the same daily trigger
with no separate cron entry.

## Query parameters

- `date` string, date, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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