Is there a way to retrieve or delete form data in Webflow using the `_id` identifier?

Published on
September 22, 2023

Yes, it is possible to retrieve or delete form data in Webflow using the _id identifier. The _id field is a unique identifier assigned to each form submission in Webflow. It allows you to manage and manipulate form data programmatically.

To retrieve or delete form data using the _id identifier in Webflow, you can follow these steps:

  1. Retrieve Form Data:
  • Create an API Key in your Webflow project's settings.
  • Make a GET request to the following endpoint: https://api.webflow.com/collections/{collection_id}/items/{item_id}.
  • Replace {collection_id} with the ID of the form collection you want to retrieve data from, and {item_id} with the specific _id of the form submission you want to retrieve.
  • Include the API Key in the request headers as Authorization: Bearer {API_KEY}.
  • The response will contain the form submission data in JSON format.
  1. Delete Form Data:
  • Make a DELETE request to the following endpoint: https://api.webflow.com/collections/{collection_id}/items/{item_id}.
  • Replace {collection_id} with the ID of the form collection you want to delete data from, and {item_id} with the specific _id of the form submission you want to delete.
  • Include the API Key in the request headers as Authorization: Bearer {API_KEY}.
  • On a successful delete request, the response will return a 204 No Content status code.

It's important to note that the API Key used for these requests should have write permissions for the relevant collections in order to delete form data.

These methods provide a way to programmatically retrieve or delete form data in Webflow using the _id identifier, allowing for more advanced form data management and automation.

Additional questions users may ask:

  1. How do I retrieve form data in Webflow using the _id identifier?
  2. Can I delete specific form submissions in Webflow using the _id identifier?
  3. What is the purpose of the _id field in Webflow form submissions?