> ## Documentation Index
> Fetch the complete documentation index at: https://docs.medera.info/llms.txt
> Use this file to discover all available pages before exploring further.

# Standard Document Generation

> Generate documents via template

```text theme={"system"}

POST /api/therapy/generate-soap-note

```

### Body

```json theme={"system"}
{
  "session_data": {
    "session_id": "ses_abc",
    "transcript": "...",
    "duration_minutes": 45
  },
  "patient_context": {
    "patient_id": "pat_abc",
    "diagnoses": ["F32.1"],
    "medications": [...]
  }
}

```

### Response

Structured SOAP (Subjective / Objective / Assessment / Plan) with section anchors back to the transcript.
