{
  "slug": "reduce-cloudinary-admin-json-bandwidth",
  "title": "Cloudinary admin api reduce json low bandwidth",
  "metaTitle": "Cloudinary admin api reduce json - RealComposer",
  "metaDescription": "Cloudinary admin api reduce json low bandwidth. Admin list endpoints mapped to thumbnail-focused schema. Map only UI fields from Cloudinary before.",
  "headline": "Marketing sites on slow networks",
  "category": "slimmer",
  "categoryLabel": "Payload Slimmer",
  "urgency": 7,
  "clientPlatform": "Static HTML / Astro",
  "upstreamServices": [
    "Cloudinary"
  ],
  "searchIntentQuery": "cloudinary admin api reduce json low bandwidth",
  "directAnswerSummary": "Admin list endpoints mapped to thumbnail-focused schema. For \"cloudinary admin api reduce json low bandwidth\", store CLOUDINARY_BASIC_AUTH in Secret Vault, call https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/resources/image from a Worker, and let Static HTML / Astro hit only https://realcomposer.com/v1/workspace/reduce-cloudinary-admin-json-bandwidth with an rc_live_ client token.",
  "problem": {
    "title": "Unmapped Cloudinary fields waste bandwidth",
    "explanation": "Cloudinary returns nested CRM, audit, and configuration objects. Static HTML / Astro parses them on the main thread even when the UI binds three fields.",
    "risks": [
      "Large arrays kept in memory after navigation",
      "Analytics showing poor LCP on API-heavy screens",
      "Developers shipping defensive null checks for unused paths"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Bind vault keys to the Worker",
      "description": "Add CLOUDINARY_BASIC_AUTH to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream."
    },
    {
      "stepNumber": 2,
      "title": "Target the real upstream URL",
      "description": "Use GET against https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/resources/image. Allowed origins on the client token should match leave cache ttl at 0 when each response is user-specific (include userid or record id in query params before enabling cache)."
    },
    {
      "stepNumber": 3,
      "title": "Call from Static HTML / Astro",
      "description": "Call https://realcomposer.com/v1/workspace/reduce-cloudinary-admin-json-bandwidth with a restricted rc_live_ client token. Static HTML / Astro never sends upstream secrets.",
      "codeSnippet": "await fetch('https://realcomposer.com/v1/workspace/reduce-cloudinary-admin-json-bandwidth', {\n  headers: { Authorization: 'Bearer rc_live_your_token' }\n});"
    }
  ],
  "pipelineConfig": {
    "name": "Cloudinary admin api reduce json low bandwidth",
    "method": "GET",
    "cacheTtlSeconds": 0,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "cloudinary",
        "upstreamUrlTemplate": "https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/resources/image",
        "httpMethod": "GET",
        "headersTemplate": {
          "Authorization": "Basic {{secrets.CLOUDINARY_BASIC_AUTH}}"
        },
        "timeoutMs": 3000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "publicId",
          "sourcePath": "resources.0.public_id",
          "type": "string",
          "sourceStep": "cloudinary"
        },
        {
          "targetPath": "format",
          "sourcePath": "resources.0.format",
          "type": "string",
          "sourceStep": "cloudinary"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "requestId": "req_reduce-c",
    "upstreamLatencyMs": 142,
    "audit": {
      "region": "edge",
      "trace": "reduce-cloudinary-admin-json-bandwidth"
    },
    "payload": {
      "id": "sample_id",
      "status": "active",
      "nested": {
        "tags": [
          "demo"
        ],
        "internal": true
      },
      "unused_blob": {
        "foo": "bar",
        "bar": "baz"
      }
    }
  },
  "sampleSlimmedOutput": {
    "publicId": "sample",
    "format": "sample"
  },
  "curlSnippet": "curl -X GET \"https://realcomposer.com/v1/workspace/reduce-cloudinary-admin-json-bandwidth\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "Does Static HTML / Astro need CORS changes after adding RealComposer?",
      "answer": "Use scoped tokens where the vendor allows them on reduce-cloudinary-admin-json-bandwidth. Admin keys stay {{secrets.*}} references only."
    },
    {
      "question": "When does edge caching apply to this recipe?",
      "answer": "Cache key for reduce-cloudinary-admin-json-bandwidth: internal edge-cache path plus sorted query. Identical params hit; vary userId per user."
    },
    {
      "question": "What happens if an upstream step times out?",
      "answer": "Rotate vault secrets for reduce-cloudinary-admin-json-bandwidth anytime; clients keep the same rc_live_ token."
    }
  ],
  "relatedRecipeSlugs": [
    "json-optimizer-low-bandwidth",
    "trim-cloudinary-resource-json-picker"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/reduce-cloudinary-admin-json-bandwidth",
    "markdown": "https://realcomposer.com/recipes/reduce-cloudinary-admin-json-bandwidth.md",
    "json": "https://realcomposer.com/recipes/reduce-cloudinary-admin-json-bandwidth.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=reduce-cloudinary-admin-json-bandwidth&via=agent"
  }
}