| name | webflow-hello-world |
| description | Create a minimal working Webflow Data API v2 example.
Use when starting a new Webflow integration, testing your setup,
or learning basic Webflow API patterns — list sites, read CMS collections, create items.
Trigger with phrases like "webflow hello world", "webflow example",
"webflow quick start", "simple webflow code", "first webflow API call".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(npx:*) |
| version | 1.5.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","design","no-code","webflow"] |
| compatibility | Designed for Claude Code |
Webflow Hello World
Overview
Minimal working examples demonstrating the three core Webflow Data API v2 operations:
listing sites, reading CMS collections/items, and creating a CMS item.
Prerequisites
- Completed
webflow-install-auth setup
webflow-api package installed
- Valid API token with
sites:read and cms:read scopes
Instructions
Step 1: List Your Sites
Every Webflow API call starts with a site_id. List your sites to find it:
import { WebflowClient } from "webflow-api";
const webflow = new WebflowClient({
accessToken: process.env.WEBFLOW_API_TOKEN!,
});
async function listSites() {
const { sites } = await webflow.sites.list();
for (const site of sites!) {
console.log(`${site.displayName}`);
console.log(` ID: ${site.id}`);
console.log(` Short name: ${site.shortName}`);
console.log(` Custom domains: ${site.customDomains?.map(d => d.url).join()}`);
.();
.();
}
}
().(.);