---
title: "CustomCodeBlocks (Webflow)"
description: "Custom Code Blocks"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/webflow/Webflow.CustomCode.CustomCodeBlocks
original: https://documentation.invantive.eu/en/datamodels/webflow/Webflow.CustomCode.CustomCodeBlocks
updated: 2026-11-17T08:33:09Z
license: https://documentation.invantive.eu/en/
---

# 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_json` | `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_id` | `varchar2` | Page ID | [ ] | filters on the platform, writable | The page the script is applied to; null for the whole site. |
| `script_id` | `varchar2` | Script ID | [x] | filters on the platform, writable | The registered script. |
| `site_id` | `varchar2` | Site ID | [x] | 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 |
|---|---|---|---|---|
| `CustomCodeBlocks_script_id_fk` | `script_id` | [RegisteredScripts](Webflow.CustomCode.RegisteredScripts)`.id` | Key |  |

