alarm api