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 API and Documentation Custom Code API

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

Webflow API and Documentation Custom Code API is one of 22 APIs that Webflow API and Documentation publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 4 JSON Schema definitions.

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

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
Server
https://api.webflow.com/v2
Authentication
OAuth 2.0, HTTP Bearer
License
Terms of Service
Resource Areas
1

Authentication & Security 2

Webflow API and Documentation 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-api-and-documentation-webflow-custom-code-api-openapi.yml Raw ↑

Other APIs Webflow API and Documentation publishes across the network.

Webflow API and Documentation Asset Folders API
Webflow API and Documentation Assets API
Webflow API and Documentation Collections API
Webflow API and Documentation Comments API
Webflow API and Documentation Components API
Webflow API and Documentation Custom Code - Pages API
Webflow API and Documentation Custom Code - Sites API
Webflow API and Documentation Forms API
Webflow API and Documentation Inventory API
Webflow API and Documentation Items API
Webflow API and Documentation Meta API
Webflow API and Documentation Orders API