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

# POST /api/therapy/generate-soap-note

> Generate a SOAP note

AI Services:

```text theme={"system"}

POST /api/therapy/generate-soap-note
POST /api/therapy/generate-soap-note-enhanced # specialty templates

```

### Body

````json theme={"system"}
{ "session_data": {... }, "patient_context": {... }, "template_config": { "format_version": "v3", "include_assessments": true, "include_billing_codes": true }, "specialty": "psychiatry"
}

``` `specialty`: `psychiatry`, `primary_care`, `cardiology`, `neurology`,... Backend persistence:

```text

POST /api/clinical-notes
GET /api/clinical-notes

````
