/token-gen

Webflow API Token generator

Primary LanguageJavaScript

API Token Generator

Token generator for minting Webflow OAuth tokens for personal use (eg. automation)

Instructions

  1. Create a new Vercel project
  2. Import this repo

image

  1. Keep all settings as default

image

  1. Add three environment variables
    • WEBFLOW_CLIENT_ID - your v1 App's client id
    • WEBFLOW_SECRET - your v1 App's client secret
    • TOKEN_ENDPOINT_URL - set this to https://api.webflow.com/oauth/token
  2. Hit deploy
  3. In your Webflow Workspace Settings, update your v1 App's redirect URI to abc.vercel.app/api/token
    • replace abc with your Vercel project URI
  4. Share the following link with users to get a token: https://webflow.com/oauth/authorize?client_id=xyz&response_type=code
    • replace xyz with your Webflow App client id

Notes

  • If you make code changes, please re-run npm install and npm run build inside of /api