| name | webflow-install-auth |
| description | Install the Webflow JS SDK (webflow-api) and configure OAuth 2.0 or API token authentication.
Use when setting up a new Webflow integration, configuring access tokens,
or initializing the WebflowClient in your project.
Trigger with phrases like "install webflow", "setup webflow",
"webflow auth", "configure webflow API token", "webflow OAuth".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(pnpm:*), Grep |
| version | 1.5.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","design","no-code","webflow"] |
| compatibility | Designed for Claude Code |
Webflow Install & Auth
Overview
Set up the official Webflow JS SDK (webflow-api on npm) and configure authentication
using either a workspace/site API token or OAuth 2.0 for Data Client Apps.
Prerequisites
- Node.js 18+
- npm, pnpm, or yarn
- A Webflow account with a workspace
- An API token (workspace or site) from
https://developers.webflow.com
Instructions
Step 1: Install the SDK
npm install webflow-api
pnpm add webflow-api
yarn add webflow-api
The package is webflow-api (not @webflow/sdk). Current version: 3.x (Data API v2).
Step 2: Choose Authentication Method
Webflow offers two auth methods:
| Method | Use Case | Scope |
|---|
| API Token (workspace) | Server-side scripts, internal tools | All sites in workspace |
| API Token (site) | Single-site integrations | One site only |
| OAuth 2.0 | Public apps, Webflow Marketplace apps | User-authorized scopes |
Step 3: Token-Based Authentication
echo 'WEBFLOW_API_TOKEN=your-token-here' >> .env
echo '.env' >> .gitignore
import { WebflowClient } from "webflow-api";
const webflow = new WebflowClient({
accessToken: process.env.WEBFLOW_API_TOKEN!,
});