---
title: "Assist Prelabel"
method: POST
path: "/api/asclepius/assist/prelabel"
tags: ["asclepius"]
---

# Assist Prelabel

`POST /api/asclepius/assist/prelabel`

## Request

- Base URL: `https://app.archangelhealth.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.archangelhealth.ai/api/asclepius/assist/prelabel`
- Auth: none declared

Suggest the weaker answer + error tags + a draft rationale for a task the
evaluator is grading — VERIFY, don't author. Guardrails:

  * Anti-peeking: gated behind the evaluator's independent-answer commit
    (like ``GET /tasks/{id}/answers``) — the suggestion describes the A/B
    answers, so it must not exist pre-reveal.
  * Never applied server-side: the verdict/tags/rationale stay untouched;
    the client renders the suggestion as a tap-to-accept hint only.
  * Low-confidence suggestions (< ASCLEPIUS_ASSIST_MIN_CONF, default 0.6)
    are HIDDEN — returned as ``skipped`` so the UI never nudges on an
    uncertain call.
  * Degrades to ``skipped=True`` with no LLM key — manual labeling always
    works.

The access gate is resolved IN THE BODY rather than through ``Depends``,
because the task id arrives in the payload and a path-parameter dependency
cannot see it. Same rule as ``require_task_access``, same two branches — an
applicant on their own examination, or the full chain for everybody else.

## Headers

- `authorization` string, nullable

## Request body

- PrelabelRequest: Ask the critic for a pre-label suggestion on a task (Speed Optimization §2). Gated behind the independent-answer commit (anti-peeking).
  - `task_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform.md) - [All operations](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform/revisions/3514f4e119da?raw)
