{
  "opencollection": "1.0.0",
  "info": {
    "name": "Webflow Collections Asset Folders Custom Code - Pages API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://webflow.com/oauth/authorize",
      "accessTokenUrl": "https://api.webflow.com/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Custom Code - Pages",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Webflow Get Custom Code",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.webflow.com/v2/pages/:page_id/custom_code",
            "params": [
              {
                "name": "page_id",
                "value": "63c720f9347c2139b248e552",
                "type": "path",
                "description": "Unique identifier for a Page"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://webflow.com/oauth/authorize",
              "accessTokenUrl": "https://api.webflow.com/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get all scripts applied to a page.\n\nRequired scope | `custom_code:read`\n"
        },
        {
          "info": {
            "name": "Webflow Add/Update Custom Code",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.webflow.com/v2/pages/:page_id/custom_code",
            "params": [
              {
                "name": "page_id",
                "value": "63c720f9347c2139b248e552",
                "type": "path",
                "description": "Unique identifier for a Page"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://webflow.com/oauth/authorize",
              "accessTokenUrl": "https://api.webflow.com/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Apply registered scripts to a page. If you have multiple scripts your App needs to apply or maintain on a page, ensure they are always included in the request body for this endpoint. To remove individual scripts, simply call this endpoint without the script in the request body.\n\n<Note title=\"Script Registration\">\n  To apply a script to a page, the script must first be registered to a Site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registere"
        },
        {
          "info": {
            "name": "Webflow Delete Custom Code",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.webflow.com/v2/pages/:page_id/custom_code",
            "params": [
              {
                "name": "page_id",
                "value": "63c720f9347c2139b248e552",
                "type": "path",
                "description": "Unique identifier for a Page"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://webflow.com/oauth/authorize",
              "accessTokenUrl": "https://api.webflow.com/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Remove all scripts from a page applied by the App. This endpoint will not remove scripts from the site's registered scripts.\n\nTo remove individual scripts applied by the App, use the [Add/Update Custom Code](/data/reference/custom-code/custom-code-pages/upsert-custom-code) endpoint.\n\n<Note>Access to this endpoint requires a bearer token obtained from an [OAuth Code Grant Flow](/data/reference/oauth-app).</Note>\n\nRequired scope | `custom_code:write`\n"
        }
      ]
    }
  ],
  "bundled": true
}