{
  "slug": "cache-zendesk-api-status-page",
  "title": "Cache zendesk api for customer status page",
  "metaDescription": "Cache zendesk api for customer status page. Shield Zendesk with 60s GET edge cache; cache key uses query params on cache-zendesk-api-status-page.",
  "headline": "Public status widgets without agent token abuse",
  "category": "caching",
  "categoryLabel": "Edge Caching & Rate Limits",
  "urgency": 7,
  "clientPlatform": "Webflow",
  "upstreamServices": [
    "Zendesk"
  ],
  "searchIntentQuery": "cache zendesk api for customer status page",
  "directAnswerSummary": "Ticket counts cached with 60s TTL for status subdomain. For \"cache zendesk api for customer status page\", store ZENDESK_API_TOKEN in Secret Vault, call https://{{secrets.ZENDESK_SUBDOMAIN}}.zendesk.com/api/v2/tickets.json from a Worker, and let Webflow hit only https://realcomposer.com/v1/workspace/cache-zendesk-api-status-page with an rc_live_ client token. Enable 60s GET cache only when query params identify the resource.",
  "problem": {
    "title": "Zendesk rate limits from Webflow traffic",
    "explanation": "Without edge caching, identical Zendesk reads during a session still round-trip to the origin.",
    "risks": [
      "HTTP 429 responses during launch traffic",
      "Surprise SaaS overages from duplicate reads",
      "Slower repeat views than necessary"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Store upstream credentials in Secret Vault",
      "description": "Store ZENDESK_API_TOKEN in the vault. Webflow never embeds the raw secret, only a revocable rc_live_ client token."
    },
    {
      "stepNumber": 2,
      "title": "Target the real upstream URL",
      "description": "Point step zendesk at https://{{secrets.ZENDESK_SUBDOMAIN}}.zendesk.com/api/v2/tickets.json with GET. Add output mapping fields that mirror the JSON contract your screen already expects. Set cache TTL to 60s so repeat GETs with the same query string hit caches.default."
    },
    {
      "stepNumber": 3,
      "title": "Call from Webflow custom code",
      "description": "Allowed origins on the token should list every Webflow host that calls this URL.",
      "codeSnippet": "fetch('https://realcomposer.com/v1/workspace/cache-zendesk-api-status-page', {\n  headers: { Authorization: 'Bearer rc_live_your_token' }\n}).then(r => r.json());"
    }
  ],
  "pipelineConfig": {
    "name": "Cache zendesk api for customer status page",
    "method": "GET",
    "cacheTtlSeconds": 60,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "zendesk",
        "upstreamUrlTemplate": "https://{{secrets.ZENDESK_SUBDOMAIN}}.zendesk.com/api/v2/tickets.json",
        "httpMethod": "GET",
        "headersTemplate": {
          "Authorization": "Bearer {{secrets.ZENDESK_API_TOKEN}}"
        },
        "timeoutMs": 3000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "ticketId",
          "sourcePath": "tickets.0.id",
          "type": "number",
          "sourceStep": "zendesk"
        },
        {
          "targetPath": "subject",
          "sourcePath": "tickets.0.subject",
          "type": "string",
          "sourceStep": "zendesk"
        },
        {
          "targetPath": "status",
          "sourcePath": "tickets.0.status",
          "type": "string",
          "sourceStep": "zendesk"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "requestId": "req_cache-ze",
    "upstreamLatencyMs": 142,
    "audit": {
      "region": "edge",
      "trace": "cache-zendesk-api-status-page"
    },
    "payload": {
      "id": "sample_id",
      "status": "active",
      "nested": {
        "tags": [
          "demo"
        ],
        "internal": true
      },
      "unused_blob": {
        "foo": "bar",
        "bar": "baz"
      }
    }
  },
  "sampleSlimmedOutput": {
    "ticketId": "sample",
    "subject": "sample",
    "status": "sample"
  },
  "curlSnippet": "curl -X GET \"https://realcomposer.com/v1/workspace/cache-zendesk-api-status-page\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "Is it safe to log Zendesk responses in Webflow?",
      "answer": "Yes for cache-zendesk-api-status-page. Ship only an rc_live_ client token in Webflow; RealComposer injects ZENDESK_API_TOKEN on https://{{secrets.ZENDESK_SUBDOMAIN}}.zendesk.com/api/v2/tickets.json."
    },
    {
      "question": "Will Anthropic or Linear prompt bodies be rewritten?",
      "answer": "cache-zendesk-api-status-page vault headers attach server-side, but Anthropic or OpenAI model and messages must come from the client body."
    },
    {
      "question": "What happens if an upstream step times out?",
      "answer": "Upstream steps in cache-zendesk-api-status-page honor timeoutMs and optional fallback JSON without leaking secrets."
    }
  ],
  "relatedRecipeSlugs": [
    "cache-rest-api-without-redis",
    "zendesk-api-customer-portal-proxy"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/cache-zendesk-api-status-page",
    "markdown": "https://realcomposer.com/recipes/cache-zendesk-api-status-page.md",
    "json": "https://realcomposer.com/recipes/cache-zendesk-api-status-page.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=cache-zendesk-api-status-page&via=agent"
  }
}