Skip to main content
GET
/
forms
/
{id}
/
responses
Listar respuestas
curl --request GET \
  --url https://api.lina.health/v1/forms/{id}/responses \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "resp_aaa111",
      "formId": "form_abc123",
      "patientId": "pat_xyz789",
      "scheduleId": "sch_def456",
      "responses": [
        { "fieldId": "pain_level", "value": 3 },
        { "fieldId": "pain_location", "value": "Espalda" },
        { "fieldId": "pain_duration", "value": "1-6 horas" },
        { "fieldId": "medication_taken", "value": true },
        { "fieldId": "notes", "value": "Mejorando respecto a ayer" }
      ],
      "completedAt": "2026-05-14T09:15:00Z"
    },
    {
      "id": "resp_bbb222",
      "formId": "form_abc123",
      "patientId": "pat_abc123",
      "scheduleId": "sch_ghi789",
      "responses": [
        { "fieldId": "pain_level", "value": 7 },
        { "fieldId": "pain_location", "value": "Abdomen" },
        { "fieldId": "pain_duration", "value": "Más de 24 horas" },
        { "fieldId": "medication_taken", "value": false },
        { "fieldId": "notes", "value": "" }
      ],
      "completedAt": "2026-05-14T10:30:00Z"
    }
  ],
  "pagination": {
    "cursor": "eyJpZCI6InJlc3BfYmJiMjIyIn0=",
    "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.

Path Parameters

id
string
required
ID del formulario (ej. form_abc123).

Query Parameters

patientId
string
Filtra respuestas por paciente.
startDate
string
Fecha inicio en formato ISO 8601 (ej. 2026-05-01T00:00:00Z).
endDate
string
Fecha fin en formato ISO 8601.
limit
integer
default:"20"
Número de resultados por página (máximo 100).
cursor
string
Cursor de paginación.
{
  "data": [
    {
      "id": "resp_aaa111",
      "formId": "form_abc123",
      "patientId": "pat_xyz789",
      "scheduleId": "sch_def456",
      "responses": [
        { "fieldId": "pain_level", "value": 3 },
        { "fieldId": "pain_location", "value": "Espalda" },
        { "fieldId": "pain_duration", "value": "1-6 horas" },
        { "fieldId": "medication_taken", "value": true },
        { "fieldId": "notes", "value": "Mejorando respecto a ayer" }
      ],
      "completedAt": "2026-05-14T09:15:00Z"
    },
    {
      "id": "resp_bbb222",
      "formId": "form_abc123",
      "patientId": "pat_abc123",
      "scheduleId": "sch_ghi789",
      "responses": [
        { "fieldId": "pain_level", "value": 7 },
        { "fieldId": "pain_location", "value": "Abdomen" },
        { "fieldId": "pain_duration", "value": "Más de 24 horas" },
        { "fieldId": "medication_taken", "value": false },
        { "fieldId": "notes", "value": "" }
      ],
      "completedAt": "2026-05-14T10:30:00Z"
    }
  ],
  "pagination": {
    "cursor": "eyJpZCI6InJlc3BfYmJiMjIyIn0=",
    "hasMore": false,
    "limit": 20
  }
}
data[].responses
array
Array con las respuestas del paciente, cada una con fieldId y value.
data[].completedAt
string
Fecha y hora en que el paciente completó el formulario.
data[].scheduleId
string
ID de la programación que originó este envío, si aplica.