added

Data API: Localization and Site Activity Logs

In this update, we've added support for the following Webflow features:

What's New


GET /sites/{site_id}/activity_logs

Get Site Activity Logs

GET /pages/{page_id}/dom

Get Page Content

POST /pages/{page_id}/dom

Update Page Content

PUT /pages/{page_id}

Update Page Metadata

PATCH /assets/{asset_id}

Update Asset

What's Changed


GET /sites
Response:

Added Property: locale (object)
Location: Response body
Description: Contains the locale settings for the site, including primary and secondary locales.
Type: String
Details:

  • primary: Object containing the primary locale settings.
    Includes properties such as id, cmsLocaleId, enabled, displayName, redirect, subdirectory, tag.
  • secondary: Array of objects, each representing a secondary locale setting.
    Each object includes properties similar to the primary locale.

GET /sites/{site_id}
Response:

Added Property: locale (object)
Location: Response body
Description: Contains the locale settings for the site, including primary and secondary locales.
Type: String
Details:

  • primary: Object containing the primary locale settings.
    Includes properties such as id, cmsLocaleId, enabled, displayName, redirect, subdirectory, tag.
  • secondary: Array of objects, each representing a secondary locale setting.
    Each object includes properties similar to the primary locale.

GET /pages/{page_id}
Parameters:

Added: locale in query
Description: Unique identifier for a specific locale. Applicable, when using localization.
Required: No
Type: String

GET /sites/{site_id}/pages
Parameters:

Added: locale in query
Description: Unique identifier for a specific locale. Applicable, when using localization.
Required: No
Type: String

GET /collections/{collection_id}/items
Parameters:

Added: cmsLocaleIds in query
Description: Unique identifiers for CMS Locales. These UIDs are different from the Site locale identifier and are listed as cmsLocaleId in the Sites response. Applicable when using localization.
Required: No
Type: String

GET /collections/{collection_id}/items/{item_id}
Parameters:

Added: cmsLocaleIds in query
Description: Unique identifiers for CMS Locales. These UIDs are different from the Site locale identifier and are listed as cmsLocaleId in the Sites response. Applicable when using localization.
Required: No
Type: Array

PATCH /collections/{collection_id}/items/{item_id}
Parameters:

Added: cmsLocaleIds in query
Description: Unique identifiers for CMS Locales. These UIDs are different from the Site locale identifier and are listed as cmsLocaleId in the Sites response. Applicable when using localization.
Required: No
Type: Array