Migrating to v2

Notice: Webflow API v1 Deprecation

🗓️ The Webflow API v1 will be deprecated on January 1, 2025.

For more details about this deprecation and its implications, please refer to the Webflow API v1 Deprecation Notice.

We’re thrilled to announce the evolution of our developer platform with v2 Apps and APIs. The upgrades to our v2 API are not just about enhancing Webflow’s technical capabilities. They’re also a new opportunity to forge a more secure, efficient, and developer-friendly environment. With the introduction of scopes and a more expansive Data API, we’re taking a step forward in giving both developers and users more control and clarity.

Using Site Tokens

Using a v1 API Site Token? Note that the option to generate v1 Site Tokens for your Sites will be removed on October 01, 2024. We strongly recommend that you generate v2 API Site Tokens for any workflows you may have in place. See our Site Token guide for more information on how to use them when calling Webflow APIs.

Building v2 Apps

If you’ve previously developed an app with v1, here’s your guide to make the transition to v2 as seamless as possible:

  1. Creating a new v2 App
    To utilize v2 resources, you’ll need to create a brand new app. Please use this step-by-step guide to help you through this process.

  2. v1 Apps are now ‘Data Clients’
    Your previous App is now what we’re calling a ‘Data Client’. Here’s a quick rundown of what that means:

    • Data Clients access specific site data, spanning from CMS to Ecommerce, as well as new resources like Assets, Pages, and Custom Code.
    • They leverage our REST APIs to fetch this information.
    • For those keen on real-time updates, Data Clients can send event notifications through Webhooks.
  3. Data API Changes
    We’ve made significant updates to our Data API, including updates, additions, and removals to key endpoints. For a thorough overview of what we’ve modified, visit our changelog of:

  4. Introducing Scopes: More Control, More Precision
    We’ve incorporated ‘scopes’ into the latest version of our Data API. Designed to specify an App’s permissions, scopes ensure that users have clearer control over the data an App can access and take action upon. It’s a step towards more transparency and security. Developers, for a granular approach to permissions, ensure you’re aligned with our Scopes Guide.

  5. Updates to our JavaScript SDK
    We’re currently revamping our SDK to provide robust support for our v2 APIs. In the meantime, if you’re leveraging our JavaScript SDK, please:

    • Update to the most recent SDK version.
    • Use TypeScript/Intellisense in your code editor to guide API usage after instantiating a client. Here’s a brief example on how to do that:
    JavaScript
    1import { WebflowClient } from "webflow-api";
    2
    3const wf = new WebflowClient({ accessToken: "your-access-token-or-api-site-token" });
    4
    5// call the sites endpoint directly
    6const sites = await wf.sites.list();
    7
    8// post to an endpoint directly
    9const result = await wf.sites.publish("my-site-id", {
    10customDomains: ["hello-webflow.com"],
    11});
  6. Re-submit your App to the Marketplace Once you’ve updated your app to align with v2, you can share these updates by re-submitting your App to the Marketplace. We’ve updated some of our guidance on Marketplace submissions and listings, so please refer to this guidance before submitting your App.

We’re incredibly thankful that you’ve taken the time to build on our original set of APIs; and we’re looking forward to seeing what you build with the new functionality in v2. If you have any questions or need further assistance during this transition, our team and resources are here to support you every step of the way.