---
title: Web part API
related:
  - https://docs.kentico.com/k11/custom-development/developing-web-parts.md
  - https://docs.kentico.com/k11/custom-development/database-table-api.md
---

> 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).

## Database tables

| Database table            | Description                                                                                                                                                                   |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| CMS\_WebPartCategory      | Stores records representing web part categories.                                                                                                                              |
| CMS\_WebPart              | Stores records representing web parts, their configuration, and properties.                                                                                                   |
| CMS\_WebPartLayout        | Stores [custom layouts](https://docs.kentico.com/k11/custom-development/developing-web-parts/using-custom-web-part-layouts.md) for web parts.                                 |
| CMS\_WebPartContainer     | Stores records representing [web part containers](https://docs.kentico.com/k11/developing-websites/developing-websites-using-the-portal-engine/using-web-part-containers.md). |
| CMS\_WebPartContainerSite | Stores relationships between web part containers and sites. Each entry indicates that a specific container can be used on a given site.                                       |

![](https://docs.kentico.com/docsassets/k11/web-part-api/WebPart_DB_diagram.png)

> **Info:** **Web part instance storage**
>
> Web part zones, web part instances, and their configuration are part of the content of [page templates](https://docs.kentico.com/k11/developing-websites/developing-websites-using-the-portal-engine/creating-portal-engine-page-templates.md). The system stores the data in XML format inside the **PageTemplateWebParts** column of the **CMS\_PageTemplate** table.

## API classes

| Class                                   | Namespace                                                           | Description                                                     |
| --------------------------------------- | ------------------------------------------------------------------- | --------------------------------------------------------------- |
| **CMS\_WebPartCategory table API**      |                                                                     |                                                                 |
| WebPartCategoryInfo                     | CMS.PortalEngine                                                    | Represents web part categories.                                 |
| WebPartCategoryInfoProvider             | Provides management functionality for web part categories.          |                                                                 |
| **CMS\_WebPart table API**              |                                                                     |                                                                 |
| WebPartInfo                             | CMS.PortalEngine                                                    | Represents individual web part objects.                         |
| WebPartInfoProvider                     | Provides management functionality for web part objects.             |                                                                 |
| **CMS\_WebPartLayout table API**        |                                                                     |                                                                 |
| WebPartLayoutInfo                       | CMS.PortalEngine                                                    | Represents custom web part layouts.                             |
| WebPartLayoutInfoProvider               | Provides management functionality for web part layouts.             |                                                                 |
| **CMS\_WebPartContainer table API**     |                                                                     |                                                                 |
| WebPartContainerInfo                    | CMS.PortalEngine                                                    | Represents web part containers.                                 |
| WebPartContainerInfoProvider            | Provides management functionality for web part containers.          |                                                                 |
| **CMS\_WebPartContainerSite table API** |                                                                     |                                                                 |
| WebPartContainerSiteInfo                | CMS.PortalEngine                                                    | Represents relationships between web part containers and sites. |
| WebPartContainerSiteInfoProvider        | Provides management functionality for container-site relationships. |                                                                 |
| **Other classes**                       |                                                                     |                                                                 |
| WebPartInstance                         | CMS.PortalEngine                                                    | Allows you to work with web part instances.                     |
| WebPartZoneInstance                     | Allows you to work with web part zones.                             |                                                                 |
