The SDK provides specific methods to interact with items that are currently published on the live site.
List Published Items
Use listItemsLive() to list all published items in a collection. For high-volume real-time reads, consider using the Content Delivery API at api-cdn.webflow.com.
Required scope: CMS:read
Create Published Items
Use createItemLive() to create an item that is immediately published to the live site.
Required scope: CMS:write
Update Published Items
Use updateItemsLive() to update up to 100 published items. Updates are applied to the live site immediately.
Required scope: CMS:write
Unpublish Items
Use deleteItemsLive() to unpublish up to 100 items from the live site (sets isDraft to true). Use deleteItemLive() for a single item.
Required scope: CMS:write
Get Published Item Details
Use getItemLive() to get details of a specific live item.
Required scope: CMS:read
// Example: Unpublishing a live item
await client.collections.items.deleteItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
cmsLocaleId: "cmsLocaleId"
});