capabilities.work

Deploy Custom Code to a Site

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

Recipe · 3 steps

Deploy Custom Code to a Site

with Webflow

Register a hosted script and apply it to a site's header.

  1. List accessible sites to resolve a target site id.
  2. Register an externally hosted script against the site so it can later be applied. Returns HTTP 201 on creation.
  3. Apply the registered script to the site, placing it in the header by referencing the registered script id and version.
What you'll need to have ready
  • siteId: Optional site id; when omitted the first accessible site is used.
  • displayName: A human-readable name for the registered script.
  • version: Semantic Version (SemVer) string for the script (e.g. 1.0.0).
  • hostedLocation: The externally hosted URL of the script to register.
For your developer

Arazzo workflow webflow:deploy-site-custom-code, 3 operations: list-sites → post-hosted-script → add-custom-code-tosite. Specs on APIs.io.