> This page is for Data API, version v2 (default).
> For other versions, use one of these documentation indexes:
> - v2 (default): https://developers.webflow.com/data/v2.0.0/llms.txt
> - v2 Beta: https://developers.webflow.com/data/v2.0.0-beta/llms.txt
> - v1: https://developers.webflow.com/data/v1.0.0/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# Libraries

> Share, install, update, and push shared libraries across the sites of a Webflow workspace with the Data API, and poll each background action's status.

The Libraries API manages shared libraries in a Webflow workspace. A site shares its components, variables, and assets as a library, and other sites in the workspace install it. Use the API to share and install libraries, preview changes, push updates, and copy library components into a site.

All endpoints live under `https://api.webflow.com/v2/sites/{site_id}` and use the `libraries:read` and `libraries:write` scopes. See [Scopes](/data/reference/scopes) for the full list.

## IDs

| ID                                 | What it identifies                               | Where to find it                                                                                                                                                                 |
| :--------------------------------- | :----------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id` (`library_id`)                | One version of a library                         | [List Libraries](/data/reference/libraries/list) returns the latest version. [List Installed Libraries](/data/reference/libraries/list-installed) returns the installed version. |
| `profileId`                        | A library across all its versions                | Both lists. Match a library between them by `profileId`.                                                                                                                         |
| `library:<libraryId>:<resourceId>` | A component or asset inside an installed library | Component discovery in the [`data_component_tool`](/mcp/tools/data-tools#data_component_tool) of the Webflow MCP server lists library components with these IDs.                 |

[Install Library](/data/reference/libraries/install) takes the latest version ID. If an installed library has a different `id` than the same `profileId` in List Libraries, an update is available. [Uninstall Library](/data/reference/libraries/uninstall) takes the installed version ID.

## Background actions

Share, install, uninstall, import, and push run in the background. The two changelog previews also run in the background. A successful request returns **202 Accepted** with a `Location` header that points to the action's status endpoint:

```json
{
  "status": "pending"
}
```

Poll the status endpoint, and wait between calls, until `status` is `finished` or `failed`. A failed status includes `error.message`:

```json
{
  "status": "failed",
  "error": {
    "message": "Library install failed. Try again."
  }
}
```

| Action                                                                               | Status endpoint                                                                                |
| :----------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------- |
| [Share Library](/data/reference/libraries/share)                                     | [Get Library Share Status](/data/reference/libraries/get-share-status)                         |
| [Install Library](/data/reference/libraries/install)                                 | [Get Library Install Status](/data/reference/libraries/get-install-status)                     |
| [Uninstall Library](/data/reference/libraries/uninstall)                             | [Get Library Uninstall Status](/data/reference/libraries/get-uninstall-status)                 |
| [Import Library Resources](/data/reference/libraries/import)                         | [Get Library Import Status](/data/reference/libraries/get-import-status)                       |
| [Push Library Updates](/data/reference/libraries/push)                               | [Get Library Push Status](/data/reference/libraries/get-push-status)                           |
| [Start Library Install Changelog](/data/reference/libraries/start-install-changelog) | [Get Library Install Changelog Status](/data/reference/libraries/get-install-changelog-status) |
| [Start Library Share Changelog](/data/reference/libraries/start-share-changelog)     | [Get Library Share Changelog Status](/data/reference/libraries/get-share-changelog-status)     |

Each status endpoint returns the site's latest run of the action. It returns **404** when there is no run. Statuses and changelogs expire after 24 hours.

### One action at a time

A site runs one share, install, uninstall, or import at a time. This includes actions that start in the Webflow Designer. While one runs, a new action returns **409** with code `library_task_in_progress`:

```json
{
  "code": "library_task_in_progress",
  "message": "A library operation is already in progress: Install task already running",
  "externalReference": null,
  "details": []
}
```

Poll the running action's status until it finishes, then retry. A push also returns this error when a share runs on the source site, or an install, uninstall, or import runs on a target site.

## Install or update a library

1. Call [List Libraries](/data/reference/libraries/list) and take the `id` of the library.
2. Optional: preview the changes. Call [Start Library Install Changelog](/data/reference/libraries/start-install-changelog), then poll [Get Library Install Changelog Status](/data/reference/libraries/get-install-changelog-status). The result lists the `changes` and tells you if the install needs `acknowledgeNotCloneable`.
3. Call [Install Library](/data/reference/libraries/install), then poll [Get Library Install Status](/data/reference/libraries/get-install-status).

An install always takes the latest version. An older version ID returns **409**. On an installed library, Install Library updates it and replaces the site's library components. To keep some components as local copies, list them in `componentsToDetach`.

Installing a library makes a cloneable site non-cloneable. On a cloneable site, the first install returns **400** until you set `acknowledgeNotCloneable` to `true`.

## Share a library

1. Optional: preview the changes. Call [Start Library Share Changelog](/data/reference/libraries/start-share-changelog), then poll [Get Library Share Changelog Status](/data/reference/libraries/get-share-changelog-status). The result lists the `changes` since the latest version, and the `invalid` items that a share leaves out.
2. Call [Share Library](/data/reference/libraries/share), then poll [Get Library Share Status](/data/reference/libraries/get-share-status).

Each share publishes a new version, even when nothing changed. A site with nothing to share returns **400**. A library can share up to 2000 assets. To share fewer, leave asset folders out with `excludedAssetFolderIds`.

To unshare a library, call [Update Library Settings](/data/reference/libraries/update-settings) with `shared: false`. Sites that installed it keep it. To share it again without a new version, use `shared: true`.

To update the sites that installed the library, call [Push Library Updates](/data/reference/libraries/push). By default, the push updates every outdated site. [List Library Installations](/data/reference/libraries/list-installations) shows the outdated sites.

> **Warning**
>
> Uninstall, unshare, and push change other people's work. An uninstall removes the library from the site. A push replaces the library's components on each target site. Confirm with the site owners first.

## Use library components and assets

Library components and assets have IDs in the format `library:<libraryId>:<resourceId>`. To use one on a page, copy it into the site first:

1. Call [Import Library Resources](/data/reference/libraries/import) with up to 100 IDs in `components` and `assets`.
2. Poll [Get Library Import Status](/data/reference/libraries/get-import-status) until `status` is `finished`.
3. Use `localComponentId` or `localAssetId` from `result`, which is the ID of the site's copy.

If the site already has a copy, the import returns it. The import is all-or-nothing: when one ID fails, the import adds nothing.

## Permissions

Webflow checks the permissions of the user who authorized the token. A missing permission returns **403** with code `insufficient_permissions`.

| Permission                                                         | Endpoints                                                                                                                                                               |
| :----------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Add library components or manage libraries on the site             | List Libraries, List Installed Libraries, List Library Installations, Get Library Import Status                                                                         |
| Add library components on the site                                 | Import Library Resources. To import only assets, managing libraries on the site is also enough.                                                                         |
| Manage libraries on the site                                       | Get Site Library, Install Library, Uninstall Library, both changelogs, and their status endpoints. Get Library Share Status, and Update Library Settings with `shared`. |
| Share and manage libraries on the site                             | Share Library                                                                                                                                                           |
| Manage libraries in the workspace                                  | Update Library Settings with `autoInstall`                                                                                                                              |
| Manage libraries in the workspace, or manage libraries on the site | Push Library Updates and Get Library Push Status                                                                                                                        |

## Plan entitlements

Some actions depend on the workspace plan:

| Feature              | Endpoint                                                                               | Error                           |
| :------------------- | :------------------------------------------------------------------------------------- | :------------------------------ |
| Shared library limit | Share Library on a library that isn't shared, Update Library Settings (`shared: true`) | **402** `library_limit_reached` |
| Automatic installs   | Update Library Settings (`autoInstall`)                                                | **403** `library_forbidden`     |
| Library push updates | Push Library Updates                                                                   | **403** `library_forbidden`     |
| Code components      | Install Library for a code library                                                     | **403** `library_forbidden`     |

## Limits

* Install, uninstall, import, share, push, and Update Library Settings share a limit of 10 requests per minute per site.
* Each changelog preview has its own limit of 10 requests per minute per site.
* A request over a limit returns **429**.
* Write requests on an archived site return **409** with code `conflict`.