Skip to main content
GET
/
conversations
/
{id}
Obtener conversación
curl --request GET \
  --url https://api.lina.health/v1/conversations/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "conv_abc123",
  "patientId": "pat_xyz789",
  "context": "Seguimiento post-operatorio. Preguntar por dolor, movilidad y estado general.",
  "language": "es",
  "status": "ended",
  "messages": [
    {
      "id": "msg_001",
      "role": "assistant",
      "content": "Hola María, soy LINA, tu asistente de salud. ¿Cómo te encuentras hoy?",
      "createdAt": "2026-05-14T10:00:00Z"
    },
    {
      "id": "msg_002",
      "role": "patient",
      "content": "Me duele un poco la rodilla cuando camino",
      "createdAt": "2026-05-14T10:01:30Z"
    },
    {
      "id": "msg_003",
      "role": "assistant",
      "content": "Entiendo, María. ¿Podrías describir el tipo de dolor? ¿Es un dolor agudo, punzante o más bien una molestia constante?",
      "createdAt": "2026-05-14T10:01:32Z"
    },
    {
      "id": "msg_004",
      "role": "patient",
      "content": "Es más bien una molestia constante, no muy fuerte",
      "createdAt": "2026-05-14T10:02:15Z"
    },
    {
      "id": "msg_005",
      "role": "assistant",
      "content": "Gracias por la información. Una molestia constante y leve es normal en esta fase de recuperación. ¿Está tomando la medicación que le recetó el Dr. García?",
      "createdAt": "2026-05-14T10:02:17Z"
    }
  ],
  "summary": "Paciente refiere dolor leve y constante en rodilla al caminar. Compatible con recuperación normal post-operatoria. Verificar adherencia a medicación.",
  "creditsConsumed": 12,
  "createdAt": "2026-05-14T10:00:00Z",
  "endedAt": "2026-05-14T10:05:00Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.linahealthcareplatform.com/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

id
string
required
ID de la conversación (ej. conv_abc123).
{
  "id": "conv_abc123",
  "patientId": "pat_xyz789",
  "context": "Seguimiento post-operatorio. Preguntar por dolor, movilidad y estado general.",
  "language": "es",
  "status": "ended",
  "messages": [
    {
      "id": "msg_001",
      "role": "assistant",
      "content": "Hola María, soy LINA, tu asistente de salud. ¿Cómo te encuentras hoy?",
      "createdAt": "2026-05-14T10:00:00Z"
    },
    {
      "id": "msg_002",
      "role": "patient",
      "content": "Me duele un poco la rodilla cuando camino",
      "createdAt": "2026-05-14T10:01:30Z"
    },
    {
      "id": "msg_003",
      "role": "assistant",
      "content": "Entiendo, María. ¿Podrías describir el tipo de dolor? ¿Es un dolor agudo, punzante o más bien una molestia constante?",
      "createdAt": "2026-05-14T10:01:32Z"
    },
    {
      "id": "msg_004",
      "role": "patient",
      "content": "Es más bien una molestia constante, no muy fuerte",
      "createdAt": "2026-05-14T10:02:15Z"
    },
    {
      "id": "msg_005",
      "role": "assistant",
      "content": "Gracias por la información. Una molestia constante y leve es normal en esta fase de recuperación. ¿Está tomando la medicación que le recetó el Dr. García?",
      "createdAt": "2026-05-14T10:02:17Z"
    }
  ],
  "summary": "Paciente refiere dolor leve y constante en rodilla al caminar. Compatible con recuperación normal post-operatoria. Verificar adherencia a medicación.",
  "creditsConsumed": 12,
  "createdAt": "2026-05-14T10:00:00Z",
  "endedAt": "2026-05-14T10:05:00Z"
}
messages
array
Lista completa de mensajes ordenados cronológicamente.
summary
string
Resumen generado por IA al finalizar la conversación. Solo disponible para conversaciones con estado ended.
creditsConsumed
integer
Total de créditos consumidos en la conversación (10 de inicio + 1 por cada mensaje del paciente).
endedAt
string
Fecha y hora de finalización de la conversación, si aplica.