Which API can be used to fulfill this use case with an IoT platform:Integrate with cameras alarms and show POP up notification manifest the violation.

The following API didn’t work, what should I do?

The Alarm List protocol sample shows how to get alarms, it might be worth having a look.

https://doc.developer.milestonesys.com/html/index.html?base=reference/architecture/net_library_initialization.html&tree=tree_2.html