How can we discern if a theme-embedded app is enabled or disabled via API?

how do we know whether the theme-embedded app enables or disables it using api?