Skip to main content
POST
/
patients
Crear paciente
curl --request POST \
  --url https://api.lina.health/v1/patients \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "firstName": "<string>",
  "lastName": "<string>",
  "email": "<string>",
  "phone": "<string>",
  "dateOfBirth": "<string>",
  "tags": [
    "<string>"
  ],
  "metadata": {}
}
'
{
  "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" },
  "createdAt": "2026-05-14T10:00:00Z",
  "updatedAt": "2026-05-14T10:00: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.

Body

firstName
string
required
Nombre del paciente.
lastName
string
required
Apellido(s) del paciente.
email
string
required
Dirección de correo electrónico. Debe ser única.
phone
string
required
Número de teléfono en formato internacional (ej. +34612345678).
dateOfBirth
string
Fecha de nacimiento en formato YYYY-MM-DD.
tags
string[]
Etiquetas para categorizar al paciente (ej. ["traumatología", "post-operatorio"]).
metadata
object
Objeto de clave-valor para almacenar datos personalizados (ej. ID de seguro, número de historia clínica).
{
  "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" },
  "createdAt": "2026-05-14T10:00:00Z",
  "updatedAt": "2026-05-14T10:00:00Z"
}
id
string
Identificador único del paciente con prefijo pat_.
status
string
Estado del paciente. Los nuevos pacientes se crean como active.
createdAt
string
Fecha de creación en formato ISO 8601.