Listar webhooks
curl --request GET \
--url https://api.linahealthcareplatform.com/api/v1/webhooks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.linahealthcareplatform.com/api/v1/webhooks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.linahealthcareplatform.com/api/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linahealthcareplatform.com/api/v1/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.linahealthcareplatform.com/api/v1/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.linahealthcareplatform.com/api/v1/webhooks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linahealthcareplatform.com/api/v1/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "wh_abc123",
"url": "https://tu-servidor.com/webhooks/lina",
"events": ["form.completed", "call.ended", "credits.low"],
"status": "active",
"createdAt": "2026-05-14T10:00:00Z",
"lastDeliveredAt": "2026-05-14T12:34:56Z"
},
{
"id": "wh_def456",
"url": "https://otro-servidor.com/hooks",
"events": ["patient.created"],
"status": "disabled",
"createdAt": "2026-04-01T08:00:00Z",
"lastDeliveredAt": "2026-04-28T15:00:00Z",
"disabledReason": "Tasa de fallos superior al 95% durante 24 horas"
}
]
}
Webhooks
Listar webhooks
Obtiene la lista de webhooks registrados con su estado actual.
GET
/
webhooks
Listar webhooks
curl --request GET \
--url https://api.linahealthcareplatform.com/api/v1/webhooks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.linahealthcareplatform.com/api/v1/webhooks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.linahealthcareplatform.com/api/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linahealthcareplatform.com/api/v1/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.linahealthcareplatform.com/api/v1/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.linahealthcareplatform.com/api/v1/webhooks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linahealthcareplatform.com/api/v1/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "wh_abc123",
"url": "https://tu-servidor.com/webhooks/lina",
"events": ["form.completed", "call.ended", "credits.low"],
"status": "active",
"createdAt": "2026-05-14T10:00:00Z",
"lastDeliveredAt": "2026-05-14T12:34:56Z"
},
{
"id": "wh_def456",
"url": "https://otro-servidor.com/hooks",
"events": ["patient.created"],
"status": "disabled",
"createdAt": "2026-04-01T08:00:00Z",
"lastDeliveredAt": "2026-04-28T15:00:00Z",
"disabledReason": "Tasa de fallos superior al 95% durante 24 horas"
}
]
}
{
"data": [
{
"id": "wh_abc123",
"url": "https://tu-servidor.com/webhooks/lina",
"events": ["form.completed", "call.ended", "credits.low"],
"status": "active",
"createdAt": "2026-05-14T10:00:00Z",
"lastDeliveredAt": "2026-05-14T12:34:56Z"
},
{
"id": "wh_def456",
"url": "https://otro-servidor.com/hooks",
"events": ["patient.created"],
"status": "disabled",
"createdAt": "2026-04-01T08:00:00Z",
"lastDeliveredAt": "2026-04-28T15:00:00Z",
"disabledReason": "Tasa de fallos superior al 95% durante 24 horas"
}
]
}
Estado del webhook:
active o disabled.Fecha del último envío exitoso.
Motivo de desactivación, si aplica.
⌘I

