Webhooks
Los webhooks avisan a su servidor cuando ocurre algo en Meetingize, de modo que no tenga que hacer sondeo. Cada
entrega es un POST HTTPS con un evento JSON, firmado con un secreto que solo usted y Meetingize conocen.
Registrar un endpoint
Sección titulada «Registrar un endpoint»En la aplicación web: Ajustes > Desarrolladores > Añadir un endpoint. O mediante la API con el scope
webhooks:
curl -s -X POST "$MEETINGIZE_API/webhook_endpoints" \ -H "Authorization: Bearer $MEETINGIZE_API_KEY" -H "Content-Type: application/json" \ -d '{"url": "https://hooks.example.com/meetingize", "events": ["transcription.completed", "document.generated"]}'La respuesta contiene el secret de firma (whsec_...), que se muestra una sola vez. Las URL deben usar https y
resolverse a una dirección pública (se rechazan las direcciones privadas y de loopback). Para probar en local,
exponga su endpoint con un túnel (por ejemplo ngrok o Cloudflare Tunnel).
Eventos
Sección titulada «Eventos»| Tipo | Cuándo | data.object |
|---|---|---|
transcription.completed | la transcripción con diarización está disponible | job (+ meeting) |
transcription.failed | la transcripción falló | job con error |
processing.completed | el informe de IA de la reunión está listo | job (+ meeting) |
processing.failed | el informe de IA falló tras una transcripción correcta | job con error |
document.generated | una generación de documento tuvo éxito | job (+ document) |
document.failed | una generación de documento falló | job con error |
usage.threshold_reached | el uso de la API del mes alcanzó el 50, el 80 o el 100 % del monedero, o el 80 o el 100 % del límite de gasto | usage_alert |
ping | botón “enviar una prueba” o POST /webhook_endpoints/{id}/test | { "message": "..." } |
Suscríbase a "*" para recibir todos los eventos excepto ping.
{ "id": "evt_7d1f...", "object": "event", "type": "transcription.completed", "created": "2026-10-11T14:03:22Z", "api_version": "2026-10-01", "livemode": false, "data": { "object": { "id": "job_9b0c...", "object": "job", "kind": "transcription", "status": "running", "stage": "processing", "meeting_id": "1b9e...", "metadata": { "crm_id": "42" }, "meeting": { "id": "1b9e...", "object": "meeting", "title": "RDV client", "status": "transcribed" } } }}Cabeceras
Sección titulada «Cabeceras»Content-Type: application/jsonUser-Agent: Meetingize-Webhooks/1.0Meetingize-Event-Id: evt_7d1f...Meetingize-Event-Type: transcription.completedMeetingize-Delivery-Id: whd_...Meetingize-Signature: t=1760191402,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bdVerificar la firma
Sección titulada «Verificar la firma»v1 es el HMAC-SHA256 hexadecimal de "{t}.{raw_body}" con su secreto completo (whsec_...) como clave. Para
verificarlo:
- lea el cuerpo sin procesar de la solicitud (antes de cualquier análisis JSON);
- recalcule el HMAC y compárelo en tiempo constante con cada valor
v1=de la cabecera; - rechace el evento si
tse aleja más de 5 minutos del momento actual (protección contra repeticiones); - desduplique por
Meetingize-Event-Id(las entregas son al menos una vez).
Durante una rotación del secreto, el secreto antiguo sigue siendo válido durante 24 horas y la cabecera lleva dos
valores v1=.
import hashlib, hmac, time
def verify_meetingize_signature(raw_body: bytes, header: str, secret: str, tolerance: int = 300) -> bool: items = [p.split("=", 1) for p in header.split(",") if "=" in p] timestamps = [v for k, v in items if k == "t"] signatures = [v for k, v in items if k == "v1"] if not timestamps or not signatures: return False t = int(timestamps[0]) if abs(time.time() - t) > tolerance: return False expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest() return any(hmac.compare_digest(expected, s) for s in signatures)
# Flask examplefrom flask import Flask, request, abortapp = Flask(__name__)
@app.post("/meetingize")def meetingize_webhook(): if not verify_meetingize_signature(request.get_data(), request.headers.get("Meetingize-Signature", ""), secret="whsec_..."): abort(400) event = request.get_json() # enqueue work, return fast return "", 204Node.js
Sección titulada «Node.js»import crypto from 'node:crypto';import express from 'express';
function verifyMeetingizeSignature(rawBody, header, secret, toleranceSec = 300) { const parts = (header || '').split(',').map((p) => p.split('=')); const t = Number((parts.find(([k]) => k === 't') || [])[1]); const sigs = parts.filter(([k]) => k === 'v1').map(([, v]) => v); if (!t || !sigs.length || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false; const expected = crypto.createHmac('sha256', secret).update(`${t}.`).update(rawBody).digest('hex'); return sigs.some((s) => s.length === expected.length && crypto.timingSafeEqual(Buffer.from(s), Buffer.from(expected)));}
const app = express();// Keep the raw body: verification must run on the exact bytes receivedapp.post('/meetingize', express.raw({ type: 'application/json' }), (req, res) => { if (!verifyMeetingizeSignature(req.body, req.get('Meetingize-Signature'), process.env.MEETINGIZE_WEBHOOK_SECRET)) { return res.sendStatus(400); } const event = JSON.parse(req.body.toString('utf8')); res.sendStatus(204);});Shell (depuración)
Sección titulada «Shell (depuración)»BODY_FILE=event.json # raw body as receivedHEADER='t=1760191402,v1=5257a8...'SECRET='whsec_...'T=$(echo "$HEADER" | tr ',' '\n' | sed -n 's/^t=//p')EXPECTED=$( { printf '%s.' "$T"; cat "$BODY_FILE"; } | openssl dgst -sha256 -hmac "$SECRET" -hex | sed 's/^.* //')echo "$HEADER" | tr ',' '\n' | grep -q "^v1=$EXPECTED$" && echo "valid" || echo "INVALID"La CLI meetingize también dispone de meetingize webhooks verify.
Entrega, reintentos y desactivación
Sección titulada «Entrega, reintentos y desactivación»- Su endpoint debe responder
2xxen un plazo de 10 segundos. No se siguen las redirecciones. Haga el trabajo de forma asíncrona y responda rápido. - Las entregas fallidas se reintentan a los 1 min, 5 min, 30 min, 2 h, 6 h, 12 h y 24 h (8 intentos en total) y
después se marcan como
failed. - Tras 15 intentos fallidos consecutivos, el endpoint se desactiva (
disabled_reason: "too_many_failures") y se envía un correo al propietario. Vuelva a activarlo conPATCH /v1/webhook_endpoints/{id}{"enabled": true}o desde la aplicación web. - El registro de entregas (estado, código HTTP, primer KB de su respuesta, duración, próximo reintento) es visible
en la aplicación web y con
GET /v1/webhook_endpoints/{id}/deliveries, y se conserva 30 días. - No se garantiza el orden. Utilice
createdy el estado del trabajo, no el orden de llegada.
Rotar el secreto
Sección titulada «Rotar el secreto»POST /v1/webhook_endpoints/{id}/rotate_secret devuelve un nuevo secreto. Ambos secretos firman las entregas
durante 24 horas, lo que le da tiempo para desplegar el nuevo.