Skip to main content
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

limit
integer
default:"20"
Número de resultados por página (máximo 100).
cursor
string
Cursor de paginación devuelto en la respuesta anterior.
Busca por nombre, apellido, email o teléfono del paciente.
status
string
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
  }
}
data
array
Lista de objetos paciente.
pagination.cursor
string
Cursor para obtener la siguiente página de resultados.
pagination.hasMore
boolean
Indica si hay más resultados disponibles.

Authorizations

Authorization
string
header
required

Token JWT obtenido via POST /auth/token

Query Parameters

limit
integer
default:20
cursor
string

Buscar por nombre, email o teléfono

status
enum<string>
Available options:
active,
inactive

Response

200 - application/json

Lista de pacientes

data
object[]
total
integer