# API v2: New endpoints

> Update: New endpoints added to the Webflow Data API v2.

As part of the [Webflow Developer Platform updates](https://webflow.com/updates/developer-platform-updates) launched on August 29th, 2023, Webflow released version 2 of the Data API with new endpoints. Here's what's new:

## CMS endpoints

* **[Create Collection Field](/data/reference/cms/collection-fields/create)** | `POST` `/collections/{collection_id}/fields` <br />
  Create a new field in an existing collection.

* **[Delete Collection Field](/data/reference/cms/collection-fields/delete)** | `DELETE` `/collections/{collection_id}/fields/{field_id}` <br />
  Remove a field from a collection.

* **[Update Collection Field](/data/reference/cms/collection-fields/update)** | `PATCH` `/collections/{collection_id}/fields/{field_id}` <br />
  Modify an existing field in a collection.

* **[Create Collection](/data/reference/cms/collections/create)** | `POST` `/sites/{site_id}/collections` <br />
  Create a new collection for a site.

## Pages endpoints

* **[List Pages](/data/reference/pages-and-components/pages/list)** | `GET` `/sites/{site_id}/pages` <br />
  Get a list of all pages for a site.

* **[Get Page Metadata](/data/reference/pages-and-components/pages/get-metadata)** | `GET` `/pages/{page_id}` <br />
  Retrieve metadata for a specific page.

## Custom Code endpoints

* **[Get Registered Scripts](/data/reference/custom-code/custom-code/list)** | `GET` `/sites/{site_id}/registered_scripts` <br />
  List all registered scripts for a site.

* **[Register Inline Custom Code](/data/reference/custom-code/custom-code/register-inline)** | `POST` `/sites/{site_id}/registered_scripts/inline` <br />
  Register new inline custom code to a site.

* **[Register Hosted Custom Code](/data/reference/custom-code/custom-code/register-hosted)** | `POST` `/sites/{site_id}/registered_scripts/hosted` <br />
  Register externally hosted custom code to a site.

* **[Add Custom Code to Site](/data/reference/custom-code/custom-code-sites/upsert-custom-code)** | `PUT` `/sites/{site_id}/custom_code` <br />
  Add custom code to an entire site.

* **[Add Custom Code to Page](/data/reference/custom-code/custom-code-pages/upsert-custom-code)** | `PUT` `/pages/{page_id}/custom_code` <br />
  Add custom code to a specific page.

## Assets endpoints

* **[List Assets](/data/reference/assets/assets/list)** | `GET` `/sites/{site_id}/assets` <br />
  Get a list of all assets for a site.

* **[Create Asset Metadata](/data/reference/assets/assets/create)** | `POST` `/sites/{site_id}/assets` <br />
  Create metadata for a new asset.

* **[Delete Asset](/data/reference/assets/assets/delete)** | `DELETE` `/assets/{asset_id}` <br />
  Remove an asset from a site.

* **[List Asset Folders](/data/reference/assets/asset-folders/list-folders)** | `GET` `/sites/{site_id}/asset_folders` <br />
  Get a list of all asset folders for a site.

* **[Create Asset Folder](/data/reference/assets/asset-folders/create-folder)** | `POST` `/sites/{site_id}/asset_folders` <br />
  Create a new asset folder for a site.

* **[Get Asset Folder](/data/reference/assets/asset-folders/get-folder)** | `GET` `/asset_folders/{asset_folder_id}` <br />
  Retrieve information about a specific asset folder.

## Forms endpoints

* **[List Forms](/data/reference/forms/forms/list)** | `GET` `/sites/{site_id}/forms` <br />
  Get a list of all forms for a site.

* **[Get Form Schema](/data/reference/forms/forms/get)** | `GET` `/forms/{form_id}` <br />
  Retrieve the schema for a specific form.

* **[List Form Submissions](/data/reference/forms/form-submissions/list-submissions)** | `GET` `/forms/{form_id}/submissions` <br />
  Get a list of all submissions for a specific form.

* **[Get Form Submission](/data/reference/forms/form-submissions/get-submission)** | `GET` `/form_submissions/{form_submission_id}` <br />
  Retrieve details about a specific form submission.

* **[Modify Form Submission](/data/reference/forms/form-submissions/update-submission)** | `PATCH` `/form_submissions/{form_submission_id}` <br />
  Update information for a specific form submission.