Libraries
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 for the full list.
IDs
Install Library 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 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:
Poll the status endpoint, and wait between calls, until status is finished or failed. A failed status includes error.message:
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:
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
- Call List Libraries and take the
idof the library. - Optional: preview the changes. Call Start Library Install Changelog, then poll Get Library Install Changelog Status. The result lists the
changesand tells you if the install needsacknowledgeNotCloneable. - Call Install Library, then poll Get Library 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
- Optional: preview the changes. Call Start Library Share Changelog, then poll Get Library Share Changelog Status. The result lists the
changessince the latest version, and theinvaliditems that a share leaves out. - Call Share Library, then poll Get Library 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 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. By default, the push updates every outdated site. List Library Installations shows the outdated sites.
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:
- Call Import Library Resources with up to 100 IDs in
componentsandassets. - Poll Get Library Import Status until
statusisfinished. - Use
localComponentIdorlocalAssetIdfromresult, 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.
Plan entitlements
Some actions depend on the workspace plan:
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.