---
title: "Generate Task"
method: POST
path: "/api/asclepius/tasks/generate"
tags: ["asclepius"]
---

# Generate Task

`POST /api/asclepius/tasks/generate`

## 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/tasks/generate`
- Auth: none declared

Generate two candidate answers via the LLM and store them as a task.

## Headers

- `authorization` string, nullable

## Request body

- CandidateGenRequest
  - `prompt` string, required
  - `specialty` string
  - `difficulty` string
  - `capture_reasoning` boolean
  - `max_labels` integer
  - `grounding_mode` string

## 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)
