{
  "opencollection": "1.0.0",
  "info": {
    "name": "Integration API - Consumer to Extole Audiences Profile Assets API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Profile Assets",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List assets for a person",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{brand}.extole.io/api/v4/persons/:personId/assets",
            "params": [
              {
                "name": "personId",
                "value": "",
                "type": "path",
                "description": "The Extole unique profile identifier of this user at Extole."
              }
            ]
          },
          "docs": "Returns all assets attached to the person profile identified by `personId`. Assets are binary or text files associated with a program participant — for example, wallet passes, QR codes, or uploaded images. Use `getPersonAsset` to fetch a single asset's metadata, or `downloadPersonAsset` to retrieve its content."
        },
        {
          "info": {
            "name": "Download a person asset by name",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{brand}.extole.io/api/v4/persons/:personId/assets/download",
            "params": [
              {
                "name": "personId",
                "value": "",
                "type": "path",
                "description": "The Extole unique profile identifier of this user at Extole."
              },
              {
                "name": "name",
                "value": "",
                "type": "query",
                "description": "Name of the asset to download."
              }
            ]
          },
          "docs": "Streams the binary or text content of the asset matching the `name` query parameter for the person identified by `personId`. Returns HTTP 302 if the content is hosted at a remote URL; returns HTTP 200 with the raw content otherwise. Use the id variant (`downloadPersonAsset`) when you have the asset id."
        },
        {
          "info": {
            "name": "Get a person asset by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{brand}.extole.io/api/v4/persons/:personId/assets/:assetId",
            "params": [
              {
                "name": "personId",
                "value": "",
                "type": "path",
                "description": "The Extole unique profile identifier of this user at Extole."
              },
              {
                "name": "assetId",
                "value": "",
                "type": "path",
                "description": "The Extole-assigned unique identifier of the asset."
              }
            ]
          },
          "docs": "Returns full metadata for the asset identified by `assetId` and owned by the person identified by `personId`. Metadata includes the asset type, name, content URL, MIME type, and creation timestamp. Use `downloadPersonAsset` to stream the asset content."
        },
        {
          "info": {
            "name": "Download a person asset by asset ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{brand}.extole.io/api/v4/persons/:personId/assets/:assetId/download",
            "params": [
              {
                "name": "personId",
                "value": "",
                "type": "path",
                "description": "The Extole unique profile identifier of this user at Extole."
              },
              {
                "name": "assetId",
                "value": "",
                "type": "path",
                "description": "The Extole-assigned unique identifier of the asset."
              }
            ]
          },
          "docs": "Streams the binary or text content of the asset identified by `assetId`. Returns HTTP 302 if the content is hosted at a remote URL; returns HTTP 200 with the raw content otherwise. Use the `name` variant (`downloadPersonAssetByName`) when you have the asset name but not the id."
        }
      ]
    }
  ],
  "bundled": true
}