Skip to main content
POST
/
webhooks
Crear webhook
curl --request POST \
  --url https://api.lina.health/v1/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "secret": "<string>"
}
'
{
  "id": "wh_abc123",
  "url": "https://tu-servidor.com/webhooks/lina",
  "events": ["form.completed", "call.ended", "credits.low"],
  "secret": "whsec_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
  "status": "active",
  "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

url
string
required
URL HTTPS de tu endpoint que recibirá los eventos.
events
string[]
required
Lista de eventos a los que suscribirte. Valores: patient.created, form.completed, call.ended, conversation.ended, credits.low, schedule.sent.
secret
string
Clave secreta para firmar los webhooks con HMAC-SHA256. Si se omite, se genera automáticamente.
{
  "id": "wh_abc123",
  "url": "https://tu-servidor.com/webhooks/lina",
  "events": ["form.completed", "call.ended", "credits.low"],
  "secret": "whsec_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
  "status": "active",
  "createdAt": "2026-05-14T10:00:00Z"
}
id
string
Identificador único del webhook con prefijo wh_.
secret
string
Clave secreta para verificar firmas. Solo se muestra en esta respuesta. Consulta la guía de webhooks para implementar la verificación.
status
string
Estado del webhook: active o disabled.