---
title: API examples
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

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](https://docs.kentico.com/k81/managing-users/user-management.md) 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.

> **Warning:** 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.
