Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Webflow Custom Code API

Custom code is JavaScript that is added to your Webflow site.

Webflow Custom Code API is one of 23 APIs that Webflow publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Custom Code. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, authentication docs, rate-limit docs, and a changelog.

This API exposes 10 operations across 6 paths. It is described by OpenAPI 3.1.0, at version 2.0.0.

Requests are made against a single base URL, https://api.webflow.com/v2.

10 operations 6 paths 0 schemas 2 DELETE4 GET2 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2.0.0
Base URL
https://api.webflow.com/v2
Authentication
OAuth 2.0, HTTP Bearer
License
Terms of Service
Resource Areas
1

Authentication & Security 2

Webflow Custom Code API declares 2 security schemes for authenticating requests. It supports OAuth 2.0 (OAuth2) using the authorizationCode flow, exposing 26 scopes. It accepts HTTP bearer tokens (ApiKey). By default, every request must be authenticated.

Paths & Operations 10

Across 6 paths, the API surfaces 10 operations — 2 DELETE, 4 GET, 2 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

Custom Code 10

Custom code is JavaScript that is added to your Webflow site.

GET
/pages/{page_id}/custom_code
Webflow Get Custom Code
get-page-custom-code 1 param → 200400401404429500
DELETE
/pages/{page_id}/custom_code
Webflow Delete Custom Code
delete-page-custom-code 1 param → 204400401404429500
PUT
/pages/{page_id}/custom_code
Webflow Add/Update Custom Code
add-custom-code-to-page 1 param body → 200400401404409429500
GET
/sites/{site_id}/custom_code
Webflow Get Custom Code
get-site-custom-code 1 param → 200400401404429500
DELETE
/sites/{site_id}/custom_code
Webflow Delete Custom Code
delete-site-custom-code 1 param → 204400401404429500
PUT
/sites/{site_id}/custom_code
Webflow Add/Update Custom Code
add-custom-code-tosite 1 param body → 200400401404429500
GET
/sites/{site_id}/registered_scripts
Webflow Get Registered Scripts
get-scripts 1 param → 200400401404429500
POST
/sites/{site_id}/registered_scripts/hosted
Webflow Register Script - Hosted
post-hosted-script 1 param body → 201400401404429500
POST
/sites/{site_id}/registered_scripts/inline
Webflow Register Script - Inline
post-inline-scripts 1 param body → 201400401404429500
GET
/sites/{site_id}/custom_code/blocks
Webflow List Custom Code Blocks
get-site-custom-code-blocks 3 params → 200400401404429500

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

webflow-custom-code-api-openapi.yml Raw ↑

Other APIs Webflow publishes across the network.

Webflow Designer Extension API
Webflow Asset Folders API
Webflow Assets API
Webflow Collections API
Webflow Comments API
Webflow Components API
Webflow Custom Code - Pages API
Webflow Custom Code - Sites API
Webflow Forms API
Webflow Inventory API
Webflow Items API
Webflow Meta API