{
  "opencollection": "1.0.0",
  "info": {
    "name": "Salesforce Marketing Cloud REST Assets API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://YOUR_SUBDOMAIN.auth.marketingcloudapis.com/v2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Assets",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Salesforce Marketing Cloud List Assets",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.rest.marketingcloudapis.com/asset/v1/content/assets",
            "params": [
              {
                "name": "$page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination (1-based)"
              },
              {
                "name": "$pageSize",
                "value": "",
                "type": "query",
                "description": "Number of assets per page"
              },
              {
                "name": "$orderBy",
                "value": "",
                "type": "query",
                "description": "Field to sort results by (e.g., modifiedDate DESC, name ASC)"
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "OData-style filter expression (e.g., assetType.name eq 'htmlemail')"
              }
            ]
          },
          "docs": "Retrieves a collection of assets from Content Builder. Supports filtering, sorting, and pagination. Assets include emails, templates, images, content blocks, and other content types."
        },
        {
          "info": {
            "name": "Salesforce Marketing Cloud Create an Asset",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.rest.marketingcloudapis.com/asset/v1/content/assets",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new asset in Content Builder. The asset type determines the required and optional fields. Common asset types include htmlemail, templatebasedemail, htmlblock, codesnippetblock, and image."
        },
        {
          "info": {
            "name": "Salesforce Marketing Cloud Retrieve an Asset",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.rest.marketingcloudapis.com/asset/v1/content/assets/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the asset"
              }
            ]
          },
          "docs": "Retrieves a single asset by its unique identifier. Returns the complete asset definition including content, metadata, and associated category."
        },
        {
          "info": {
            "name": "Salesforce Marketing Cloud Update an Asset",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{subdomain}.rest.marketingcloudapis.com/asset/v1/content/assets/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the asset"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing asset. Provide the complete asset definition with all desired values. Fields not included in the request body are not modified."
        },
        {
          "info": {
            "name": "Salesforce Marketing Cloud Delete an Asset",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.rest.marketingcloudapis.com/asset/v1/content/assets/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the asset to delete"
              }
            ]
          },
          "docs": "Deletes an asset from Content Builder. This action is permanent and cannot be undone."
        },
        {
          "info": {
            "name": "Salesforce Marketing Cloud Query Assets With Advanced Filtering",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.rest.marketingcloudapis.com/asset/v1/content/assets/query",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Performs an advanced query against assets using a structured query object. Supports complex filtering with AND/OR logic, nested conditions, and multiple sort criteria. More powerful than the OData-style filter on the list endpoint."
        },
        {
          "info": {
            "name": "Salesforce Marketing Cloud List Asset Categories",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.rest.marketingcloudapis.com/asset/v1/content/categories",
            "params": [
              {
                "name": "$page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination (1-based)"
              },
              {
                "name": "$pageSize",
                "value": "",
                "type": "query",
                "description": "Number of categories per page"
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "OData-style filter expression (e.g., parentId eq 12345)"
              }
            ]
          },
          "docs": "Retrieves categories (folders) used to organize assets in Content Builder. Categories provide a hierarchical folder structure for content organization."
        }
      ]
    }
  ],
  "bundled": true
}