capabilities.work

Apply Custom Code and Publish

A 3-step recipe with Webflow API and Documentation. We can help you get access.

Recipe · 3 steps

Apply Custom Code and Publish

Apply a registered script to a site and publish it.

  1. List the scripts registered to the site.
  2. Apply the first registered script to the site header.
  3. Publish the site so the applied script runs on the live pages.
What you'll need to have ready
  • accessToken: Webflow OAuth bearer token with custom_code:read, custom_code:write, and sites:write scopes.
  • siteId: Unique identifier for the Site to apply the script to.
  • scriptVersion: Semantic version string of the registered script to apply (e.g. 1.0.0).
For your developer

Arazzo workflow webflow-api-and-documentation-webflow:apply-custom-code, 3 operations: get-scripts → add-custom-code-tosite → site-publish. Specs on APIs.io.