chat
Get or create the chat with an assigned patient
Changed onOperator-side get-or-create of the chat with one of their assigned patients (patient_id). Idempotent: returns the existing chat if present.
post/api/chat/chats/get-or-create
Request
- Base URL: https://api.corabea.it (the document declares no server; this is the origin it was published from)
- URL: https://api.corabea.it/api/chat/chats/get-or-create
- Auth: HTTP bearer
Query parameters
patient_idstring uuid required
Patient UUID (an assigned patient of the operator)
Response
Successful Response
Example response
{
"created_at": "2025-01-15T08:00:00Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"last_message_at": "2025-01-20T10:00:00Z",
"operator_first_name": "Mario",
"operator_id": "operator-uuid",
"operator_last_name": "Rossi",
"patient_first_name": "Luigi",
"patient_id": "patient-uuid",
"patient_last_name": "Verdi",
"profession": "PSICOLOGO",
"status": "active",
"updated_at": "2025-01-20T10:00:00Z"
}Changes
- info
added the optional property
to the response with the status
- info
- info
added the optional property
to the response with the status
- info