Extract
Extract a structured maritime medical summary from a conversation using Nebius AI. Returns a flat object of 95 medical fields suitable for populating the RMD PDF form.
POSThttps://api.marinahealth.eu/ai/extract
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. |
| userProfile | object | optional | Optional patient profile fields to pre-populate the summary. Supported fields: ship_name, call_sign, satellite_phone, company, email, first_name, last_name, date_of_birth, gender, nationality. |
Example Request
cURL
curl -X POST https://api.marinahealth.eu/ai/extract \
-H "Authorization: Bearer <accessToken>" \
-H "Content-Type: application/json" \
-d '{
"conversation": [
{ "role": "user", "content": "I have chest pain on the left side." },
{ "role": "assistant", "content": "How severe is the pain on a scale of 1 to 10?" },
{ "role": "user", "content": "About a 6." }
],
"userProfile": {
"first_name": "Jane",
"last_name": "Doe",
"ship_name": "MV Northern Star"
}
}'Response
Successful
| Field | Type | Description |
|---|---|---|
| summary | object | Flat object of 95 medical fields (key → string | boolean). All keys are always present; unknown values are empty string or false. This object is the direct input to /ai/generate-pdf and /ai/email-pdf. |
json
{
"summary": {
"first_name": "Jane",
"last_name": "Doe",
"date_of_birth": "1975-03-12",
"gender": "Female",
"nationality": "Norwegian",
"ship_name": "MV Northern Star",
"chief_complaint": "Chest pain",
"pain_location": "Left side",
"pain_severity": "6/10",
"blood_pressure": "138/88",
"heart_rate": "76",
"temperature": "36.8",
"allergies": "Penicillin"
}
}