Obtener paciente
curl --request GET \
--url https://api.linahealthcareplatform.com/api/v1/patients/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.linahealthcareplatform.com/api/v1/patients/{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/patients/{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/patients/{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/patients/{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/patients/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linahealthcareplatform.com/api/v1/patients/{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": "pat_xyz789",
"firstName": "María",
"lastName": "García",
"email": "maria.garcia@email.com",
"phone": "+34612345678",
"dateOfBirth": "1985-03-15",
"status": "active",
"tags": ["traumatología", "post-operatorio"],
"metadata": { "insuranceId": "INS-12345" },
"history": {
"formsCompleted": 8,
"callsMade": 3,
"conversationsHeld": 5,
"lastInteraction": "2026-05-13T16:45:00Z"
},
"createdAt": "2026-05-01T10:00:00Z",
"updatedAt": "2026-05-14T08:30:00Z"
}
Pacientes
Obtener paciente
Obtiene la información completa de un paciente, incluyendo su historial de actividad.
GET
/
patients
/
{id}
Obtener paciente
curl --request GET \
--url https://api.linahealthcareplatform.com/api/v1/patients/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.linahealthcareplatform.com/api/v1/patients/{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/patients/{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/patients/{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/patients/{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/patients/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linahealthcareplatform.com/api/v1/patients/{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": "pat_xyz789",
"firstName": "María",
"lastName": "García",
"email": "maria.garcia@email.com",
"phone": "+34612345678",
"dateOfBirth": "1985-03-15",
"status": "active",
"tags": ["traumatología", "post-operatorio"],
"metadata": { "insuranceId": "INS-12345" },
"history": {
"formsCompleted": 8,
"callsMade": 3,
"conversationsHeld": 5,
"lastInteraction": "2026-05-13T16:45:00Z"
},
"createdAt": "2026-05-01T10:00:00Z",
"updatedAt": "2026-05-14T08:30:00Z"
}
Path Parameters
string
required
ID del paciente (ej.
pat_xyz789).{
"id": "pat_xyz789",
"firstName": "María",
"lastName": "García",
"email": "maria.garcia@email.com",
"phone": "+34612345678",
"dateOfBirth": "1985-03-15",
"status": "active",
"tags": ["traumatología", "post-operatorio"],
"metadata": { "insuranceId": "INS-12345" },
"history": {
"formsCompleted": 8,
"callsMade": 3,
"conversationsHeld": 5,
"lastInteraction": "2026-05-13T16:45:00Z"
},
"createdAt": "2026-05-01T10:00:00Z",
"updatedAt": "2026-05-14T08:30:00Z"
}
string
Identificador único del paciente.
object
Resumen del historial de interacciones del paciente.
integer
Número total de formularios completados.
integer
Número total de llamadas IA realizadas.
integer
Número total de conversaciones de chat IA.
string
Fecha de la última interacción con el paciente.
Authorizations
Token JWT obtenido via POST /auth/token

