← Webflow

New Collection Item from Webflow API

Pipedream makes it easy to connect APIs for Webflow and 900+ other apps remarkably fast.

Trigger workflow on
New Collection Item from the Webflow API
Next, do this
Connect to 900+ APIs using code and no-code building blocks
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Trigger a workflow on New Collection Item with Webflow API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the New Collection Item trigger
    1. Connect your Webflow account
    2. Select a Site
    3. Optional- Select one or more Collections
  2. Add steps to connect to 900+ APIs using code and no-code building blocks
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Send Message with Discord Webhook API on New Collection Item (Instant) from Webflow API
Webflow + Discord Webhook
 
Try it
Add Multiple Rows with Google Sheets API on New Collection Item (Instant) from Webflow API
Webflow + Google Sheets
 
Try it
Get Film with SWAPI API on New Collection Item (Instant) from Webflow API
Webflow + SWAPI - Star Wars
 
Try it
Create Multiple Records with Airtable API on New Collection Item (Instant) from Webflow API
Webflow + Airtable
 
Try it
Custom Request with HTTP / Webhook API on New Collection Item (Instant) from Webflow API
Webflow + HTTP / Webhook
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

New Collection Item on Webflow
Description:Emit new event when a collection item is created. [See the docs here](https://developers.webflow.com/#item-model)
Version:0.2.0
Key:webflow-new-collection-item

Code

import common from "../common/collection-common.mjs";
import constants from "../../common/constants.mjs";

export default {
  type: "source",
  key: "webflow-new-collection-item",
  name: "New Collection Item",
  description: "Emit new event when a collection item is created. [See the docs here](https://developers.webflow.com/#item-model)",
  version: "0.2.0",
  ...common,
  hooks: {
    ...common.hooks,
    async deploy() {
      if (this.collectionIds?.length !== 1) {
        console.log("Skipping retrieval of historical events for multiple or no Collection ID");
        return;
      }

      const path = `/collections/${this.collectionIds[0]}/items`;
      console.log("Retrieving historical events...");

      let {
        total,
        items: events,
      } = await this._makeRequest(path);

      if (total > constants.LIMIT) {
        const offset = Math.floor(total / constants.LIMIT);

        events = (await this._makeRequest(path, {
          offset,
        })).items.reverse();

        events.push(...(await this._makeRequest(path, {
          offset: offset - 1,
        })).items.reverse());
      } else {
        events.reverse();
      }

      this.emitHistoricalEvents(events);
    },
  },
  methods: {
    ...common.methods,
    getWebhookTriggerType() {
      return "collection_item_created";
    },
    generateMeta(data) {
      return {
        id: data._id,
        summary: `New collection item ${data.slug} created`,
        ts: Date.parse(data["created-on"]),
      };
    },
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
WebflowwebflowappThis component uses the Webflow app.
SitesiteIdstringSelect a value from the drop down menu.
N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.
CollectionscollectionIdsstring[]Select a value from the drop down menu.

Authentication

Webflow uses OAuth authentication. When you connect your Webflow account, Pipedream will open a popup window where you can sign into Webflow and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Webflow API.

Pipedream requests the following authorization scopes when you connect your account:

About Webflow

Responsive web design tool

More Ways to Use Webflow

Triggers

New Form Submission from the Webflow API

Emit new event when a new form is submitted. See the docs here

 
Try it
Changed E-commerce Inventory (Instant) from the Webflow API

Emit an event when an e-commerce inventory level changes

 
Try it
Changed E-commerce Order (Instant) from the Webflow API

Emit an event when an e-commerce order is changed

 
Try it
Deleted Collection Item (Instant) from the Webflow API

Emit an event when a collection item is deleted

 
Try it
New Changed Collection Item from the Webflow API

Emit new event when a collection item is changed. See the docs here

 
Try it

Actions

Create Collection Item with the Webflow API

Create new collection item. See the docs here

 
Try it
Create Live Item with the Webflow API

Create new live collection item

 
Try it
Delete Collection Item with the Webflow API

Delete Item of a Collection. See the docs here

 
Try it
Fulfill Order with the Webflow API

Fulfill an order. See the docs here

 
Try it
Get Collection with the Webflow API

Get a collection. See the docs here

 
Try it