How to use webhooks to integrate Digital Samba into your platform
Digital Samba webhooks are HTTP callbacks that keep your own platform in sync with what happens inside your video rooms. When an event occurs – a participant joins, a recording finishes processing, an AI summary becomes ready – Digital Samba sends an HTTP POST request to a URL you choose, and your backend can react as soon as the request arrives.
If you have embedded Digital Samba's video conferencing API and SDK into your product, webhooks let your CRM, LMS or billing system hear about in-room activity without polling. They come with Digital Samba Embedded, the developer product, and this guide explains how Digital Samba webhooks work, which events you can subscribe to, and how to register and secure your first webhook – with copy-paste examples from the official documentation.
Table of contents
- How do Digital Samba webhooks work?
- Webhooks vs API: what's the difference?
- Which events can trigger a webhook?
- How to set up webhooks with Digital Samba
- How to keep your webhook endpoint secure
- What can you build with webhooks?
- Frequently asked questions
- Final thought
How do Digital Samba webhooks work?
A webhook is an HTTP POST request that Digital Samba sends to a URL you preconfigure, triggered by a specific event in one of your rooms. You tell Digital Samba which events you care about, and whenever one of them happens, the details arrive at your endpoint shortly after the event – no polling, no manual checks.
Every webhook request carries a JSON payload with the same overall shape. Here is the example from the payload structure documentation:
{
"eventType": "participant_joined",
"sessionId": "4fcc375c-e0ce-4f52-9b35-3a034042ab5a",
"roomId": "7f8c8eac-6643-47db-8d93-e7633e6e53ec",
"timestamp": 1675790387,
"data": {
"participantId": "8b085f23-9a2a-465d-bdbb-73a233c7df90",
"name": "John Smith",
"role": "moderator"
}
}
The fields are straightforward:
- eventType – which event fired, such as
participant_joinedorrecording_ready - sessionId – the session where the event happened
- roomId – the room where the event happened
- timestamp – a Unix timestamp of when the event occurred
- data – event-specific details, such as which participant joined and with which role
Because every payload identifies the room and session, your backend can map each event to its own records – a lesson in your LMS, a consultation in your booking system, a deal in your CRM.
Webhooks vs API: what's the difference?
An API is something you call; a webhook is something that calls you. With the Digital Samba REST API, your backend sends a request when it wants something – create a room, start a recording, fetch statistics. With webhooks, the direction reverses: Digital Samba contacts your server the moment something happens, without you asking.
Without webhooks, the only way to find out whether someone joined a session would be to poll the API on a timer. Polling wastes requests when nothing has changed, and your data is only ever as fresh as your last poll. A webhook removes both problems: no wasted requests, and updates that arrive as events happen rather than on a schedule.
In practice you use both together. The API is how you act on Digital Samba – configuring rooms, generating access tokens, downloading recordings – and webhooks are how Digital Samba reports back to you. A typical integration registers a webhook for recording_ready, then uses the API to download the file the moment that event arrives.
Which events can trigger a Digital Samba webhook?
Digital Samba fires webhooks for events across most of what happens in and around a meeting: participants, sessions, recordings, AI transcription and summaries, Q&A, the content library, and telephony. At the time of writing, the webhooks documentation lists these events:
- Participants:
participant_joined,participant_left,participant_invited,participant_hand_raised,participant_hand_lowered,participant_waiting_joined,participant_waiting_left,participant_avatar_uploaded,participant_avatar_deleted - Sessions and rooms:
session_started,session_ended,room_locked,room_unlocked,room_deleted,role_deleted - Recordings:
recording_started,recording_stopped,recording_ready,recording_deleted - AI transcripts and summaries:
session_transcript_ready,session_summary_ready - Q&A:
question_asked,question_answered,question_updated,question_dismissed,question_reopened,question_deleted,answer_updated,answer_deleted - Content library:
file_added_to_library,file_renamed,file_deleted_from_library,file_processing_failed,folder_added_to_library,folder_renamed,folder_deleted_from_library - Telephony:
phone_participant_muted,phone_participant_unmuted,phone_participant_asked_to_unmute
If you are not sure where to start, participant_joined, participant_left, session_ended and recording_ready cover the most common integration needs. New events ship regularly alongside product releases, so check the documentation for the current list before you build.
How to set up webhooks with Digital Samba
Setting up a webhook takes one REST call once your endpoint exists. Here is the full path from nothing to a working integration:
- Create your webhook endpoint. Add a route on your server that accepts HTTP POST requests with a JSON body and responds with a 2xx status code, as is standard for webhooks. Keep the handler light – acknowledge first, process afterwards.
- Get your API credentials. Sign up for a free developer account and copy your team ID and developer key from the dashboard. If you are brand new to the platform, our guide on how to get started with Digital Samba Embedded covers the basics.
- Register the webhook. Send a POST request to the
/webhooksendpoint with your URL, the events you want, and a secret for verification:curl --request POST \ --header "Content-Type: application/json" \ --url https://api.digitalsamba.com/api/v1/webhooks \ --user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY \ --data '{ "endpoint": "https://YOUR_BACKEND_ENDPOINT_URL", "events": ["participant_joined", "participant_left"], "name": "My first webhook", "authorization_header": "YOUR_SECRET" }'The create webhook documentation has the same example in Java and PHP, plus the full field reference.
- Test it. Create a room in the dashboard (or with a POST request to
/rooms), join it, and watch theparticipant_joinedpayload arrive. If you want to inspect payloads before writing any code, the documentation suggests registering webhook.site as a temporary endpoint – it displays every incoming request in the browser. - Act on the events. Mark attendance in your LMS when participants join, kick off a download when a recording is ready, or alert your team when a question is asked – the section below has more patterns to borrow.
Webhooks are managed entirely through the REST API: GET /webhooks lists them, PATCH /webhooks/:id edits one, and DELETE /webhooks/:id removes it, so your integration code can create and update subscriptions programmatically.
How to keep your webhook endpoint secure
Your webhook endpoint is a public URL, so treat it like one. Four habits worth adopting:
- Set the
authorization_headersecret. It is optional in the API, but you should always use it. Digital Samba includes the secret in every webhook request as a bearer token (Authorization: Bearer YOUR_SECRET), so your handler can reject any request that does not carry it. Without the check, anyone who discovers your URL could send fake events. Note that this is a shared secret sent with each request, not a cryptographic signature of the payload – it proves the sender knew the secret, but it does not protect the body from tampering in transit, which is one more reason to use HTTPS. - Serve the endpoint over HTTPS. Payloads include participant names and room identifiers – they should never travel in plain text.
- Respond quickly, process asynchronously. Return a 2xx response as soon as you have stored the payload, then do the heavy work – database writes, file downloads, notifications – in a background job, so the handler stays quick.
- Make your handler idempotent. Retry and delivery behaviour is not covered in the documentation, so do not assume each event arrives exactly once. Build the handler so that processing the same event twice does no harm – for example, by using the
sessionId,eventTypeandtimestamptogether as a deduplication key – and reconcile anything critical through the REST API on a schedule, such as listing recordings rather than relying onrecording_readyalone.
What can you build with webhooks?
Webhooks turn Digital Samba from an embedded video window into a data source for the rest of your product. Some patterns worth building:
- Attendance and engagement tracking.
participant_joinedandparticipant_leftgive you exact join and leave times for every session – attendance registers in an LMS, consultation logs in a telehealth platform, activity records in a CRM. - Automated recording pipelines. When
recording_readyfires, your backend downloads the MP4 via the API, stores it where you need it, and notifies the people who missed the session – no one checking a dashboard. - AI summaries delivered inside your product.
session_summary_readyandsession_transcript_readytell you the moment post-session AI output exists, so you can pull it straight into your app. See our guide to video transcription and AI meeting summaries via API for that half of the workflow. - Host alerts and moderation.
participant_waiting_joinedcan ping a host the moment someone enters the waiting room, andquestion_askedcan route webinar questions to the right person while the session is still running. - Operational audit trails. Session start and end times, lock and unlock events, and recording lifecycles feed usage reports and compliance logs without anyone exporting data by hand.
Most of these pair a webhook with a follow-up API call. If you are setting up that side of the integration, our guide on how to configure your Digital Samba rooms using the developer API and SDK is the natural next read.
Frequently asked questions
What is the difference between a webhook and an API?
An API waits for your application to send a request and then answers it; a webhook sends data to your application on its own when an event occurs. APIs suit on-demand actions such as creating rooms, while webhooks suit real-time notifications such as a participant joining. Most integrations use both together.
How do I verify that a webhook request really came from Digital Samba?
Set the authorization_header secret when you create the webhook. Digital Samba then includes it in every request as Authorization: Bearer YOUR_SECRET, and your endpoint rejects any request without the correct value. The secret is known only to your backend and Digital Samba.
How can I test Digital Samba webhooks without writing code?
Register a temporary endpoint from webhook.site, a free service recommended in the Digital Samba documentation. It shows every incoming request in your browser, so you can trigger events in a test room and inspect the exact payloads before building your real handler.
Can I choose which events a webhook receives?
Yes. Each webhook subscribes to an explicit array of events when you create it, and you can change that list later with a PATCH request. You can also register more than one webhook, each with its own endpoint and event list.
Do I need the SDK to use webhooks?
No. Webhooks are configured through the REST API and delivered server to server, so they work whether or not you use the SDK. The SDK handles the in-browser experience for your users, while webhooks keep your backend informed – they complement each other rather than overlap.
Final thought
Register a webhook with one REST call, protect it with the authorization_header secret and HTTPS, and your platform can react to joins, recordings and AI summaries as they happen – without polling the API or anyone watching a dashboard.
If you are earlier in the journey, start with our guide on how to integrate video conferencing into your website, then come back to wire up the events. Ready to build? Create a free developer account and register your first webhook today, or book a demo if you would like us to walk your team through the integration.
Share this
You May Also Like
These Related Stories

How to Enable the Whiteboard in Digital Samba via the API

How to Configure Default Room Settings with the Digital Samba API

