Summarize
Generate a structured clinical summary from a conversation using Nebius AI.
POSThttps://api.marinahealth.eu/ai/summarize
Requires AuthVerified Email Requiredapplication/jsonRate limit: 50 requests per hour
Headers
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | required | Bearer <accessToken> |
Request Body
Body Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| conversation | Message[] | required | Array of 1–100 messages. Each message: { role: "user" | "assistant", content: string } where content is max 10 000 characters. |
Example Request
cURL
curl -X POST https://api.marinahealth.eu/ai/summarize \
-H "Authorization: Bearer <accessToken>" \
-H "Content-Type: application/json" \
-d '{
"conversation": [
{ "role": "user", "content": "I have had chest pain for two days." },
{ "role": "assistant", "content": "Can you describe the pain?" },
{ "role": "user", "content": "It is a dull ache on the left side." }
]
}'Response
Successful
| Field | Type | Description |
|---|---|---|
| summary | string | Structured clinical summary. |
json
{
"summary": "Patient presents with hypertension and Type 2 diabetes..."
}