Thanks for your response, I was checking the same example but I'm not sure what can be the replacement for the reportUrl.
// Endpoint to get report config
const reportUrl = 'https://aka.ms/CaptureViewsReportEmbedConfig';
Do I need to develop any backend to get the endpoint? if yes then please suggest and what are the required permission during development.