Automating attendance with webhooks: signatures, deduplication and reconciliation
Send attendance to your own system automatically when a meeting ends. A practical guide to verifying Sotech Meet webhook signatures, never processing an event twice, handling out-of-order events and reconciling daily.
Sotech Meet Team4 min read
Collecting "who attended and for how long?" by hand after every class, training session or meeting is slow and error-prone. Webhooks automate it: Sotech Meet tells your HTTPS endpoint what happens in the meeting as it happens, and you write attendance into your own system.
This article covers the four parts of a robust attendance integration: choosing the right events, verifying signatures, handling retries and ordering, and reconciling gaps. Webhooks and the Integration API are available on the Business, Education and Enterprise plans.
Which events matter for attendance?
When you define a webhook endpoint in the admin console, you choose which events to receive. For attendance, the important ones are:
meeting.started: the session opened. You can show the class as live in your interface.participant.joinedandparticipant.left: a participant connected to media or their connection closed. Useful for a live attendance view.meeting.ended: the session ended. Includes start and end time, duration, total and peak participant counts, the reason it ended and whether a recording is available.recording.completed: the recording file is ready.
The correlation_tag in the payload is the tag you set when creating the meeting; use it to find your own record.
Final attendance: call the API after the event
You could compute attendance from individual join and leave events, but there is a sturdier approach: when meeting.ended arrives, call the attendance endpoint (GET …/attendance). For each participant it returns first join, last leave, total seconds and the list of continuous connected intervals. Someone who dropped and rejoined has several intervals, merged into one record thanks to externalUserId.
Once the isFinal field in the response is true, the data will not change, so that is the moment to import it permanently. People who stayed in the waiting room and were never admitted are not listed. Guests who joined without an account have an empty external ID; if you need to match identities in attendance, give participants personal links.
Verify the signature
Your webhook endpoint is on the public internet, so you must confirm each request really comes from Sotech Meet. Every request carries X-SotechMeet-Signature and X-SotechMeet-Timestamp headers. The signature is an HMAC-SHA256 over the timestamp and the raw body, computed with the secret shown once when the endpoint was created.
When verifying:
- Read the body as raw bytes. If you parse and re-serialize the JSON, the signature will not match.
- Compute the expected signature and compare it with the header in constant time.
- Reject the request if the timestamp is more than five minutes old. This prevents replay of a captured request.
Ready-made verification samples in several languages are in the webhook documentation.
Be resilient to retries and ordering
Webhook delivery works on an at-least-once basis:
- The same event can arrive more than once. If your response is lost on the way back, the event is sent again. Store each event's
id; if you have already processed it, return200and skip it. - Ordering is not guaranteed.
participant.leftcan arrive beforeparticipant.joined. Sort by the timestamps inside the events, not by arrival order. - Respond fast. Any
2xxresponse counts as success; reply within 10 seconds. Put heavy work such as fetching attendance or downloading files on a queue and respond immediately. - Do not redirect.
3xxresponses are not followed and count as failures.
Failed deliveries are retried eight times at increasing intervals, and the delivery history and last error are visible in the admin console. The "Send test" button there lets you check your endpoint without waiting for a live meeting.
Reconciliation: webhooks are not the single source of truth
After a long outage or a broken deployment, some deliveries may fail permanently. So once a day, check any meetings that still look "in progress" on your side through the status endpoint (GET …/status). If the state is Ended, fetch and import attendance. This small job turns webhooks into an accelerator and your system into one that heals itself.
Security notes
- The webhook URL must resolve to a public IP address. Private-network and link-local addresses are rejected to protect against server-side request forgery (SSRF). On your own installation, a server setting can allow delivery to a system on your internal network.
- Keep the signing secret out of your code repository; store it in a secrets manager or an environment variable.
Example flow
- When a class is scheduled, a meeting is created with a
correlationTag. meeting.startedarrives and the class is marked live.meeting.endedarrives; the event is queued and200is returned immediately.- A queue worker fetches attendance and, if
isFinalistrue, writes it to student records. - When
recording.completedarrives, the recording is downloaded and archived. - A nightly job reconciles any meetings still open using the status endpoint.
For the full API side, see automating meetings with the API, and for the LMS context, our LMS integration article.