Skip to navigation

Get Site Library

Get the library this site shares, at its latest version. A library with status ARCHIVED is unshared.

Returns 404 when the site never shared a library.

Requires permission to manage libraries on the site.

Required scope | libraries:read

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

site_idstringRequiredformat: "objectid"
Unique identifier for a Site

Response

Request was successful
idstringformat: "objectid"

Library version ID. List Libraries returns the latest version, and List Installed Libraries returns the installed version. Use it as library_id.

profileIdstringformat: "objectid"
ID of the library across all its versions. Use it to match a library between lists.
typeenum
Kind of library. Code libraries are shared from the Webflow CLI.
Allowed values:
displayNamestring
Library name. A library takes the name of its source site.
versionstring
datePublishedstringformat: "date-time"
componentsCountinteger
variablesCountinteger
assetsCountinteger
codeComponentsCountinteger
tagStylesCountinteger
fontsCountinteger
statusenum

Whether the source site shares the library (ACTIVE) or unshared it (ARCHIVED).

Allowed values:
autoInstallboolean
Whether new sites in the workspace install the library automatically.
excludedAssetFolderIdslist of strings

Asset folders the library leaves out. NO_FOLDER means assets outside any folder.

descriptionstringOptional
Release notes of this version.
sourceFilesCountintegerOptional
Not returned for code libraries.
skillsCountintegerOptional
Not returned for code libraries.
rulesCountintegerOptional
Not returned for code libraries.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error