Add a script to a Site’s Custom Code registry. Inline scripts can be between 1 and 2000 characters.
In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered
to a Site via the registered_scripts
endpoints, and then applied to a Site or Page using the appropriate
custom_code
endpoints.
Required scope | custom_code:write
Unique identifier for a Site
The code to be added to the site (to be hosted by Webflow).
A Semantic Version (SemVer) string, denoting the version of the script
User-facing name for the script. Must be between 1 and 50 alphanumeric characters
Sub-Resource Integrity Hash. Only required for externally hosted scripts (passed via hostedLocation)
Define whether the script can be copied on site duplication and transfer
Created
Human readable id, derived from the user-specified display name
Define whether the script can be copied on site duplication and transfer
User-facing name for the script. Must be between 1 and 50 alphanumeric characters
URI for an externally hosted script location
Sub-Resource Integrity Hash. Only required for externally hosted scripts (passed via hostedLocation)
Timestamp when the script version was created
Timestamp when the script version was last updated
A Semantic Version (SemVer) string, denoting the version of the script