API examples

When writing custom code, you can use the API examples application to learn about the Kentico API. The application demonstrates how to perform basic operations with system objects (creating, retrieving, updating and deleting objects).

Only users with the Global administrator privilege level can access and run API examples.

To view the sample code, navigate the categories in the tree, and click View code () next to the available actions. If you wish to inspect the code directly in Visual Studio, you can find the examples inside the ~/CMSAPIExamples/Code folder of your web project.

Running the API examples creates sample data in the system. We recommend running the API examples only on Kentico instance that you don't use for development or production.