{
  "slug": "zendesk-api-customer-portal-proxy",
  "title": "Zendesk api secure proxy for customer portal",
  "metaDescription": "Zendesk api secure proxy for customer portal. Scoped edge pipeline returns only public-safe ticket fi. Keep Zendesk keys in RealComposer Vault;.",
  "headline": "Public ticket status views without agent credentials",
  "category": "security",
  "categoryLabel": "Security & Secret Vault",
  "urgency": 8,
  "clientPlatform": "Frontend / Web",
  "upstreamServices": [
    "Zendesk"
  ],
  "searchIntentQuery": "zendesk api secure proxy for customer portal",
  "directAnswerSummary": "Scoped edge pipeline returns only public-safe ticket fields. For \"zendesk api secure proxy for customer portal\", store ZENDESK_API_TOKEN in Secret Vault, call https://{{secrets.ZENDESK_SUBDOMAIN}}.zendesk.com/api/v2/tickets.json from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/zendesk-api-customer-portal-proxy with an rc_live_ client token.",
  "problem": {
    "title": "Zendesk keys in Frontend / Web network tabs",
    "explanation": "Frontend / Web ships code or scripts to end-user devices. Any Zendesk bearer token in those bundles can be copied from DevTools, proxies, or repackaged apps.",
    "risks": [
      "Shared Frontend / Web projects revealing Zendesk tokens",
      "Sudden Zendesk quota burn from scripted abuse",
      "Inability to rotate keys without redeploying clients"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Store upstream credentials in Secret Vault",
      "description": "Create ZENDESK_API_TOKEN vault entries, then bind them to this pipeline step headers with {{secrets.NAME}} placeholders."
    },
    {
      "stepNumber": 2,
      "title": "Configure upstream steps and output mapping",
      "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. 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 Frontend / Web",
      "description": "Allowed origins on the token should list every Frontend / Web host that calls this URL.",
      "codeSnippet": "const res = await fetch('https://realcomposer.com/v1/workspace/zendesk-api-customer-portal-proxy', {\n  headers: { Authorization: 'Bearer rc_live_your_token' }\n});"
    }
  ],
  "pipelineConfig": {
    "name": "Zendesk api secure proxy for customer portal",
    "method": "GET",
    "cacheTtlSeconds": 0,
    "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_zendesk-",
    "upstreamLatencyMs": 142,
    "audit": {
      "region": "edge",
      "trace": "zendesk-api-customer-portal-proxy"
    },
    "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/zendesk-api-customer-portal-proxy\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "Which Zendesk credential belongs in the vault for this pipeline?",
      "answer": "Store ZENDESK_API_TOKEN for zendesk-api-customer-portal-proxy. Frontend / Web never sees decrypted values."
    },
    {
      "question": "Does POST traffic get cached?",
      "answer": "zendesk-api-customer-portal-proxy POST steps bypass caches.default even if cacheTtlSeconds is set in the dashboard."
    },
    {
      "question": "How do I rotate upstream credentials?",
      "answer": "Allowed origins on the zendesk-api-customer-portal-proxy client token restrict which domains may call the edge URL."
    }
  ],
  "relatedRecipeSlugs": [
    "call-private-api-from-webflow-securely",
    "hubspot-api-client-proxy"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/zendesk-api-customer-portal-proxy",
    "markdown": "https://realcomposer.com/recipes/zendesk-api-customer-portal-proxy.md",
    "json": "https://realcomposer.com/recipes/zendesk-api-customer-portal-proxy.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=zendesk-api-customer-portal-proxy&via=agent"
  }
}