Skip to content
Guides

Webhooks

Sotech Meet webhooks: setting up endpoints, request headers, HMAC-SHA256 signature verification (Node.js, Python, C#), delivery and retry rules, and the event list.

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.

Admin console: webhook endpoints with test sends and delivery history
The Admin → Webhooks screen

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 ) )
  1. Read the body as raw bytes; don't parse and re-serialize the JSON.
  2. Compute the signature and compare it in constant time.
  3. Reject timestamps older than 5 minutes (replay protection).
  4. 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
});

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

EventWhendata
meeting.createdA meeting was createdtitle, scheduled_start, duration_minutes, status
meeting.updatedTitle, time or settings changedtitle, scheduled_start, duration_minutes, status
meeting.cancelledThe meeting was cancelledtitle, scheduled_start, duration_minutes, status
meeting.startedA session started (first authorized join)started_at
meeting.endedA session endedstarted_at, ended_at, duration_seconds, participant_count, peak_participants, reason, recording_available
participant.waitingSomeone entered the waiting roomparticipant_id, user_id, external_user_id, display_name, email, role
participant.joinedA participant connected to mediaparticipant, joined_at, rejoin
participant.leftA participant disconnectedparticipant, left_at
recording.startedRecording startedrecording_id, started_at
recording.completedThe recording file is readyrecording_id, started_at, ended_at, duration_seconds, size_bytes
recording.failedRecording failedrecording_id, error
recording.deletedThe recording file was deletedrecording_id, reason (manual / retention), deleted_at
webhook.pingTest 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).