How to call rest API and subscribe for notification/event from custom widget

Hi @sudarshan.karande

there is not REST API over MQTT just the REST API which you might use in your widget.

I would urge you to read either the documentation or the following knowledge base articles:

It is pretty simple to use the @c8y/client to read alarms (even on real-time) and visualize them in any widget / ui component.