Listar pacientes
curl --request GET \
--url https://api.linahealthcareplatform.com/api/v1/patients \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.linahealthcareplatform.com/api/v1/patients"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linahealthcareplatform.com/api/v1/patients")
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{
"data": [
{
"id": "pat_xyz789",
"firstName": "María",
"lastName": "García",
"email": "maria.garcia@email.com",
"phone": "+34612345678",
"dateOfBirth": "1985-03-15",
"status": "active",
"tags": ["post-operatorio", "traumatología"],
"metadata": {},
"createdAt": "2026-05-01T10:00:00Z",
"updatedAt": "2026-05-14T08:30:00Z"
},
{
"id": "pat_abc123",
"firstName": "Carlos",
"lastName": "López",
"email": "carlos.lopez@email.com",
"phone": "+34698765432",
"dateOfBirth": "1990-07-22",
"status": "active",
"tags": ["cardiología"],
"metadata": { "insuranceId": "INS-12345" },
"createdAt": "2026-04-20T14:00:00Z",
"updatedAt": "2026-05-10T11:00:00Z"
}
],
"pagination": {
"cursor": "eyJpZCI6InBhdF9hYmMxMjMifQ==",
"hasMore": true,
"limit": 20
}
}
Pacientes
Listar pacientes
Obtiene una lista paginada de pacientes.
GET
/
patients
Listar pacientes
curl --request GET \
--url https://api.linahealthcareplatform.com/api/v1/patients \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.linahealthcareplatform.com/api/v1/patients"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linahealthcareplatform.com/api/v1/patients")
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{
"data": [
{
"id": "pat_xyz789",
"firstName": "María",
"lastName": "García",
"email": "maria.garcia@email.com",
"phone": "+34612345678",
"dateOfBirth": "1985-03-15",
"status": "active",
"tags": ["post-operatorio", "traumatología"],
"metadata": {},
"createdAt": "2026-05-01T10:00:00Z",
"updatedAt": "2026-05-14T08:30:00Z"
},
{
"id": "pat_abc123",
"firstName": "Carlos",
"lastName": "López",
"email": "carlos.lopez@email.com",
"phone": "+34698765432",
"dateOfBirth": "1990-07-22",
"status": "active",
"tags": ["cardiología"],
"metadata": { "insuranceId": "INS-12345" },
"createdAt": "2026-04-20T14:00:00Z",
"updatedAt": "2026-05-10T11:00:00Z"
}
],
"pagination": {
"cursor": "eyJpZCI6InBhdF9hYmMxMjMifQ==",
"hasMore": true,
"limit": 20
}
}
Query Parameters
Número de resultados por página (máximo 100).
Cursor de paginación devuelto en la respuesta anterior.
Busca por nombre, apellido, email o teléfono del paciente.
Filtra por estado del paciente. Valores:
active, inactive.{
"data": [
{
"id": "pat_xyz789",
"firstName": "María",
"lastName": "García",
"email": "maria.garcia@email.com",
"phone": "+34612345678",
"dateOfBirth": "1985-03-15",
"status": "active",
"tags": ["post-operatorio", "traumatología"],
"metadata": {},
"createdAt": "2026-05-01T10:00:00Z",
"updatedAt": "2026-05-14T08:30:00Z"
},
{
"id": "pat_abc123",
"firstName": "Carlos",
"lastName": "López",
"email": "carlos.lopez@email.com",
"phone": "+34698765432",
"dateOfBirth": "1990-07-22",
"status": "active",
"tags": ["cardiología"],
"metadata": { "insuranceId": "INS-12345" },
"createdAt": "2026-04-20T14:00:00Z",
"updatedAt": "2026-05-10T11:00:00Z"
}
],
"pagination": {
"cursor": "eyJpZCI6InBhdF9hYmMxMjMifQ==",
"hasMore": true,
"limit": 20
}
}
Lista de objetos paciente.
Cursor para obtener la siguiente página de resultados.
Indica si hay más resultados disponibles.
Authorizations
Token JWT obtenido via POST /auth/token
Query Parameters
Buscar por nombre, email o teléfono
Available options:
active, inactive Response
200 - application/json
Lista de pacientes
Hide child attributes
Hide child attributes
⌘I

