How can i get the conference duration by api call, after the room is destroyed?

I want to save conference duration in mongoDB, and also want to know how to get the meeting info like timestamps of participants joined and left.

how to achieve this?

You can use this for both prosody-plugins/event_sync at main · jitsi-contrib/prosody-plugins · GitHub

Thank You @damencho !!

I get this in prosody log.

is there any way to get this in an api response like below?

GET ${api_prefix}/events/room/destroyed

There is already a destroyed event prosody-plugins/mod_event_sync_component.lua at 1be7ef163e808256cf326dcf38c274ba3de29880 · jitsi-contrib/prosody-plugins · GitHub