CustomCodeBlocks: Webflow Custom Code Blocks
read only REST
- Catalog:
Webflow - Schema:
CustomCode - Primary Keys:
site_id, page_id, script_id - Label: Custom Code Blocks
Can only retrieve data.
Summary
The registered scripts applied to the sites and their pages, one row per script. Webflow answers these to an OAuth app only, so a site token reads no rows.
API Source
- Endpoint:
/sites/{site_id}/custom_code/blocks
Performance Characteristics
| Characteristic | Value |
|---|---|
| Average access latency (ms) | 285 |
| Full scan rows per minute | 5,800 |
Table Columns
The columns of the table CustomCodeBlocks are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.
| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|---|---|---|
attributes_ |
varchar2 |
Attributes JSON | filters on the platform, writable | The attributes of the script element as JSON. | |
location |
varchar2 |
Location | filters on the platform, writable | header or footer. | |
page_ |
varchar2 |
Page ID | filters on the platform, writable | The page the script is applied to; null for the whole site. | |
script_ |
varchar2 |
Script ID | filters on the platform, writable | The registered script. | |
site_ |
varchar2 |
Site ID | filters on the platform, writable | The site. | |
version |
varchar2 |
Version | filters on the platform, writable | The version of the script applied. |
Keys
| Key | Column | Refers to | Kind | Description |
|---|---|---|---|---|
Custom |
script_ |
RegisteredScripts.id |
Key |