Great news @pdurante1981 @nebulon
The Meeting END API has been implemented in MiroTalk SFU v2.1.20.
This allows you to remotely terminate an active meeting by room name, perfect for billable minutes or subscription-based systems.
New Endpoint
DELETE /api/v1/meeting/:room
What it does:
Disconnects all connected peers
Optionally redirects them to a custom URL
Disables the “beforeunload” confirmation popup when ended via API
Protected via API secret key
Fully documented in Swagger
Includes example scripts (JS, Shell, Python, PHP)
Covered by unit tests
Enable the Feature
In your env file:
API_KEY_SECRET=mirotalksfu_default_secret
API_ALLOW_MEETING_END=true
By default, this endpoint is disabled for security reasons.
Quick Examples
End meeting (peers return to home page)
curl -X DELETE http://localhost:3010/api/v1/meeting/test \
-H "authorization: mirotalksfu_default_secret" \
-H "Content-Type: application/json"
End meeting with custom redirect
curl -X DELETE http://localhost:3010/api/v1/meeting/test \
-H "authorization: mirotalksfu_default_secret" \
-H "Content-Type: application/json" \
-d '{"redirect": "https://docs.mirotalk.com/about"}'
Documentation
Full API reference:
https://docs.mirotalk.com/mirotalk-sfu/api/#meeting-end-entry-point
This should now fully cover your use case for remotely ending meetings when user minutes expire
Docker image build is currently in progress...