Setup
Add your HTTPS endpoint under Admin → Webhooks and pick the events you want (leave empty for all). The signing secret (whsec_…) is shown once when the endpoint is created. The "Send test" button sends a webhook.ping event.
Request
POST /your/endpoint HTTP/1.1
Content-Type: application/json; charset=utf-8
User-Agent: SotechMeet-Webhooks/1.0
X-SotechMeet-Event: meeting.ended
X-SotechMeet-Delivery: 5f0c2a8e-6b0f-4a57-9d0e-0b6d2f7c9a11
X-SotechMeet-Timestamp: 1796058365
X-SotechMeet-Signature: sha256=9b1c…e4
{
"id": "5f0c2a8e-6b0f-4a57-9d0e-0b6d2f7c9a11",
"event": "meeting.ended",
"tenant_id": "c4b7…",
"meeting_id": "03c7ab8b-9d45-48e2-a3f2-5cba3b77bbb7",
"meeting_code": "eyz-amea-aaw",
"correlation_tag": "lms:session:8421",
"session_id": "36ef9c5c-05be-4a4e-af9d-8ed392cd4c3d",
"timestamp": "2026-12-05T11:31:40.426346+00:00",
"data": {
"started_at": "2026-12-05T09:58:12.297882+00:00",
"ended_at": "2026-12-05T11:31:40.426346+00:00",
"duration_seconds": 5608,
"participant_count": 42,
"peak_participants": 39,
"reason": "EndedByHost",
"recording_available": true
}
}Webhook payloads use snake_case field names (unlike REST responses). correlation_tag is the tag you set when creating the meeting.
Verifying signatures
signature = "sha256=" + hex( HMAC-SHA256( secret, X-SotechMeet-Timestamp + "." + raw_body ) )- Read the body as raw bytes; don't parse and re-serialize the JSON.
- Compute the signature and compare it in constant time.
- Reject timestamps older than 5 minutes (replay protection).
- If you've already processed the id, return 200 and skip it (deduplication).
import express from "express";
import { createHmac, timingSafeEqual } from "node:crypto";
const app = express();
const SECRET = process.env.SOTECH_MEET_WEBHOOK_SECRET; // whsec_…
function verify(timestamp, rawBody, signature) {
const expected = "sha256=" + createHmac("sha256", SECRET)
.update(`${timestamp}.`).update(rawBody).digest("hex");
const a = Buffer.from(expected), b = Buffer.from(signature ?? "");
return a.length === b.length && timingSafeEqual(a, b)
&& Math.abs(Date.now() / 1000 - Number(timestamp)) <= 300;
}
app.post("/webhooks/sotech-meet", express.raw({ type: "application/json" }), (req, res) => {
if (!verify(req.get("X-SotechMeet-Timestamp"), req.body, req.get("X-SotechMeet-Signature"))) {
return res.sendStatus(401);
}
const event = JSON.parse(req.body);
queue.add(event); // queue heavy work
res.sendStatus(200); // respond within 10 seconds
});import hashlib, hmac, json, os, time
from flask import Flask, request, abort
app = Flask(__name__)
SECRET = os.environ["SOTECH_MEET_WEBHOOK_SECRET"].encode() # whsec_…
def verify(timestamp: str, raw_body: bytes, signature: str) -> bool:
mac = hmac.new(SECRET, timestamp.encode() + b"." + raw_body, hashlib.sha256)
expected = "sha256=" + mac.hexdigest()
return hmac.compare_digest(expected, signature or "") and abs(time.time() - int(timestamp)) <= 300
@app.post("/webhooks/sotech-meet")
def sotech_meet_webhook():
raw = request.get_data()
if not verify(request.headers.get("X-SotechMeet-Timestamp", "0"), raw,
request.headers.get("X-SotechMeet-Signature", "")):
abort(401)
event = json.loads(raw)
enqueue(event) # queue heavy work
return "", 200using System.Security.Cryptography;
using System.Text;
app.MapPost("/webhooks/sotech-meet", async (HttpRequest req, IConfiguration cfg) =>
{
using var ms = new MemoryStream();
await req.Body.CopyToAsync(ms);
var raw = ms.ToArray();
var timestamp = req.Headers["X-SotechMeet-Timestamp"].ToString();
var signature = req.Headers["X-SotechMeet-Signature"].ToString();
var secret = Encoding.UTF8.GetBytes(cfg["SotechMeet:WebhookSecret"]!); // whsec_…
var payload = Encoding.UTF8.GetBytes(timestamp + ".").Concat(raw).ToArray();
var expected = "sha256=" + Convert.ToHexStringLower(HMACSHA256.HashData(secret, payload));
var fresh = long.TryParse(timestamp, out var ts)
&& Math.Abs(DateTimeOffset.UtcNow.ToUnixTimeSeconds() - ts) <= 300;
if (!fresh || !CryptographicOperations.FixedTimeEquals(
Encoding.ASCII.GetBytes(expected), Encoding.ASCII.GetBytes(signature)))
return Results.Unauthorized();
// queue the event; deduplicate by id
return Results.Ok();
});Delivery rules
- Any 2xx response counts as success. Respond within 10 seconds and queue heavy work.
- Redirects (3xx) aren't followed and count as failures.
- The URL must resolve to a public IP; private, loopback and link-local addresses are rejected.
- Failed deliveries are attempted 8 times: immediately, then 10s, 30s, 2m, 10m, 30m, 2h, 6h.
- The same event may arrive more than once; deduplicate by id.
- Ordering isn't guaranteed; sort by timestamp and the times inside data.
Webhooks are an accelerator, not the single source of truth. Once a day, reconcile meetings that still look running on your side using the status endpoint.
Events
| Event | When | data |
|---|---|---|
meeting.created | A meeting was created | title, scheduled_start, duration_minutes, status |
meeting.updated | Title, time or settings changed | title, scheduled_start, duration_minutes, status |
meeting.cancelled | The meeting was cancelled | title, scheduled_start, duration_minutes, status |
meeting.started | A session started (first authorized join) | started_at |
meeting.ended | A session ended | started_at, ended_at, duration_seconds, participant_count, peak_participants, reason, recording_available |
participant.waiting | Someone entered the waiting room | participant_id, user_id, external_user_id, display_name, email, role |
participant.joined | A participant connected to media | participant, joined_at, rejoin |
participant.left | A participant disconnected | participant, left_at |
recording.started | Recording started | recording_id, started_at |
recording.completed | The recording file is ready | recording_id, started_at, ended_at, duration_seconds, size_bytes |
recording.failed | Recording failed | recording_id, error |
recording.deleted | The recording file was deleted | recording_id, reason (manual / retention), deleted_at |
webhook.ping | Test from the admin console | — |
meeting.ended reasons: EndedByHost (host ended it), Empty (everyone left), MaxDuration (duration cap), PlanTimeLimit (plan time limit), EndedByApi (ended by the integration).
