{
  "opencollection": "1.0.0",
  "info": {
    "name": "Instapage Assets API",
    "version": "1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Assets",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get image folders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.instapage.com/v1/workspaces/:workspaceId/assets/images/folders",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path",
                "description": "The ID of the workspace."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Specifies which page to fetch. Used for pagination purposes."
              }
            ]
          },
          "docs": "Get the list of image asset folders in a given workspace."
        },
        {
          "info": {
            "name": "Get images in folder",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.instapage.com/v1/workspaces/:workspaceId/assets/images/folders/:folderId/items",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path",
                "description": "The ID of the workspace."
              },
              {
                "name": "folderId",
                "value": "",
                "type": "path",
                "description": "The ID of the folder to retrieve images from."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Specifies which page to fetch. Used for pagination purposes."
              }
            ]
          },
          "docs": "Get the list of images in a specific folder within a workspace's image assets."
        },
        {
          "info": {
            "name": "Upload image",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.instapage.com/v1/workspaces/:workspaceId/assets/images/folders/:folderId/items",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "path",
                "description": "The ID of the workspace."
              },
              {
                "name": "folderId",
                "value": "",
                "type": "path",
                "description": "The ID of the folder to upload the image to."
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "image",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Upload an image to a specific folder within a workspace's image assets, using multipart/form-data with the file field named 'image'."
        }
      ]
    }
  ],
  "bundled": true
}