Skip to main content
GET
/
conversations
/
{id}
Obtener conversación
curl --request GET \
  --url https://api.linahealthcareplatform.com/api/v1/conversations/{id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.linahealthcareplatform.com/api/v1/conversations/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.linahealthcareplatform.com/api/v1/conversations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linahealthcareplatform.com/api/v1/conversations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.linahealthcareplatform.com/api/v1/conversations/{id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.linahealthcareplatform.com/api/v1/conversations/{id}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.linahealthcareplatform.com/api/v1/conversations/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "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"
}

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.

Authorizations

Authorization
string
header
required

Token JWT obtenido via POST /auth/token

Path Parameters

id
string
required

Response

200 - application/json

Conversación con mensajes

id
string
patientId
string
status
string
messages
object[]
createdAt
string<date-time>