---
title: Media libraries API
related:
  - https://docs.kentico.com/k10/managing-website-content/working-with-files/media-library-files.md
  - https://docs.kentico.com/k10/managing-website-content/configuring-the-environment-for-content-editors/configuring-media-libraries.md
  - https://docs.kentico.com/k10/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                                                                                                                              |
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Media\_Library               | Stores records representing media libraries.                                                                                             |
| Media\_File                  | Stores records representing media files.                                                                                                 |
| Media\_LibraryRolePermission | Stores relationships between roles and media libraries. Each entry indicates that a roles has a specific permission for a media library. |

![](https://docs.kentico.com/docsassets/k10/media-libraries-api/media_libraries_DB.png)

## API classes

| Class                                      | Namespace                                                               | Description                                                            |
| ------------------------------------------ | ----------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| **Media\_Library table API**               |                                                                         |                                                                        |
| MediaLibraryInfo                           | CMS.MediaLibrary                                                        | Represents media libraries.                                            |
| MediaLibraryInfoProvider                   | Provides management functionality for media libraries.                  |                                                                        |
| **Media\_File table API**                  |                                                                         |                                                                        |
| MediaFileInfo                              | CMS.MediaLibrary                                                        | Represents files in media libraries.                                   |
| MediaFileInfoProvider                      | Provides management functionality for media files.                      |                                                                        |
| **Media\_LibraryRolePermission table API** |                                                                         |                                                                        |
| MediaLibraryRolePermissionInfo             | CMS.MediaLibrary                                                        | Represents permission relationships between roles and media libraries. |
| WebPartLayoutInfoProvider                  | Provides management functionality for role-media library relationships. |                                                                        |
