---
title: Xperience 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).

# Xperience by Kentico API Examples

The API examples documentation helps developers learn the basics of the Xperience by Kentico API and serves as a library of code snippets. The examples demonstrate how to use the API to manage the system's objects, including basic operations (creating, retrieving, updating and deleting) and in some cases more advanced tasks. The full API Reference is available at <https://api-reference.kentico.com/>.

The examples are organized into the following categories:

- [Configuration](https://docs.kentico.com/api/configuration.md)
- [Content management](https://docs.kentico.com/api/content-management.md)
- [Development](https://docs.kentico.com/api/development.md)
- [Digital marketing](https://docs.kentico.com/api/digital-marketing.md)

> **Tip:** **Tips**:
>
> - The API examples in the documentation do not include the required _using_ statements for Xperience by Kentico API namespaces. As long as your project references the Xperience libraries (or contains the _Kentico.Xperience.Libraries_ NuGet package), you can use Visual Studio Quick Actions to quickly [Generate usings](https://docs.microsoft.com/en-us/visualstudio/ide/reference/generate-usings).

> **Note:** **API usage guidelines**
>
> See [API usage](https://docs.kentico.com/documentation/developers-and-admins/customization/stable-customization-guidelines.md#api-usage) for information on using the Xperience by Kentico API in a way that minimizes problems when updating to newer versions.
>
> For example, API contained in namespaces with the **.Internal** suffix is not intended for public use. Such API should be considered unstable and subject to breaking changes during **any update** (even outside of major releases).
