Skip to main content
POST
/
schedules
Crear programación
curl --request POST \
  --url https://api.lina.health/v1/schedules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "formId": "<string>",
  "patientId": "<string>",
  "channel": "<string>",
  "scheduledAt": "<string>",
  "message": "<string>"
}
'
{
  "id": "sch_def456",
  "formId": "form_abc123",
  "patientId": "pat_xyz789",
  "channel": "whatsapp",
  "status": "pending",
  "scheduledAt": "2026-05-15T09:00:00Z",
  "message": "Hola María, te enviamos tu cuestionario de seguimiento semanal.",
  "creditsConsumed": 3,
  "createdAt": "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

formId
string
required
ID del formulario a enviar.
patientId
string
required
ID del paciente destinatario.
channel
string
required
Canal de envío. Valores: email, sms, whatsapp, app.
scheduledAt
string
Fecha y hora de envío en formato ISO 8601. Si se omite, se envía inmediatamente.
message
string
Mensaje personalizado que acompaña al formulario. Si se omite, se usa el mensaje por defecto.

Coste por canal

CanalCréditos
email1
sms2
whatsapp3
app0
{
  "id": "sch_def456",
  "formId": "form_abc123",
  "patientId": "pat_xyz789",
  "channel": "whatsapp",
  "status": "pending",
  "scheduledAt": "2026-05-15T09:00:00Z",
  "message": "Hola María, te enviamos tu cuestionario de seguimiento semanal.",
  "creditsConsumed": 3,
  "createdAt": "2026-05-14T10:00:00Z"
}
id
string
Identificador único de la programación con prefijo sch_.
status
string
Estado de la programación: pending, sent, failed.
creditsConsumed
integer
Créditos consumidos según el canal seleccionado.