Skip to main content
GET
/
schedules
Listar programaciones
curl --request GET \
  --url https://api.lina.health/v1/schedules \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "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": "sch_ghi789",
      "formId": "form_def456",
      "patientId": "pat_abc123",
      "channel": "email",
      "status": "sent",
      "scheduledAt": "2026-05-14T08:00:00Z",
      "sentAt": "2026-05-14T08:00:12Z",
      "creditsConsumed": 1,
      "createdAt": "2026-05-13T16:00:00Z"
    }
  ],
  "pagination": {
    "cursor": "eyJpZCI6InNjaF9naGk3ODkifQ==",
    "hasMore": false,
    "limit": 20
  }
}

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.

Query Parameters

patientId
string
Filtra por paciente.
status
string
Filtra por estado. Valores: pending, sent, failed.
limit
integer
default:"20"
Número de resultados por página (máximo 100).
cursor
string
Cursor de paginación.
{
  "data": [
    {
      "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": "sch_ghi789",
      "formId": "form_def456",
      "patientId": "pat_abc123",
      "channel": "email",
      "status": "sent",
      "scheduledAt": "2026-05-14T08:00:00Z",
      "sentAt": "2026-05-14T08:00:12Z",
      "creditsConsumed": 1,
      "createdAt": "2026-05-13T16:00:00Z"
    }
  ],
  "pagination": {
    "cursor": "eyJpZCI6InNjaF9naGk3ODkifQ==",
    "hasMore": false,
    "limit": 20
  }
}
data[].sentAt
string
Fecha y hora en que se envió el formulario (solo si status es sent).