Icinga 2’s REST API is used to manage the core application and retrieve details about the objects state. This API is intended for programmatic usage.
The documentation covers everything you need, including programming examples.
Collected examples from community and developers can be found in this GitHub repository. Missing something there? Please edit it and send a pull request