{
  "slug": "zendesk-ticket-form-static-html-proxy",
  "title": "Zendesk ticket form api from static html no backend",
  "metaTitle": "Zendesk ticket form api from static - RealComposer",
  "metaDescription": "Zendesk ticket form api from static html no backend. Static HTML / Astro CORS fix for Zendesk via RealComposer OPTIONS plus vault headers.",
  "headline": "Static sites submitting tickets safely",
  "category": "ecosystem",
  "categoryLabel": "Platforms & Frameworks",
  "urgency": 8,
  "clientPlatform": "Static HTML / Astro",
  "upstreamServices": [
    "Zendesk"
  ],
  "searchIntentQuery": "zendesk ticket form api from static html no backend",
  "directAnswerSummary": "POST pipeline creates Zendesk requests with vault token. For \"zendesk ticket form api from static html no backend\", store ZENDESK_API_TOKEN in Secret Vault, call https://{{secrets.ZENDESK_SUBDOMAIN}}.zendesk.com/api/v2/tickets.json from a Worker, and let Static HTML / Astro hit only https://realcomposer.com/v1/workspace/zendesk-ticket-form-static-html-proxy with an rc_live_ client token.",
  "problem": {
    "title": "Static HTML / Astro cannot attach secret headers to Zendesk",
    "explanation": "Static HTML / Astro runs in the browser or a sandbox without a secret store. Zendesk rejects unsigned browser origins or requires server-only headers.",
    "risks": [
      "Proxy hacks that break when vendors tighten CSP",
      "Zapier-only workarounds adding cost and latency",
      "Guest users seeing failed network requests in demos"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Add vault secrets for this pipeline",
      "description": "Create ZENDESK_API_TOKEN vault entries, then bind them to this pipeline step headers with {{secrets.NAME}} placeholders."
    },
    {
      "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. 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/zendesk-ticket-form-static-html-proxy with a restricted rc_live_ client token. Static HTML / Astro never sends upstream secrets.",
      "codeSnippet": "await fetch('https://realcomposer.com/v1/workspace/zendesk-ticket-form-static-html-proxy', {\n  headers: { Authorization: 'Bearer rc_live_your_token' }\n});"
    }
  ],
  "pipelineConfig": {
    "name": "Zendesk ticket form api from static html no backend",
    "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-ticket-form-static-html-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-ticket-form-static-html-proxy\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "Can Static HTML / Astro call Zendesk without holding the production key?",
      "answer": "Log request IDs for zendesk-ticket-form-static-html-proxy, not raw Zendesk payloads, because upstream bodies may include PII."
    },
    {
      "question": "How do I forward JSON bodies to POST upstreams?",
      "answer": "zendesk-ticket-form-static-html-proxy keeps cache TTL at 0 because it uses POST upstream calls or per-user responses. Add ids to query strings before enabling GET cache."
    },
    {
      "question": "How do I rotate upstream credentials?",
      "answer": "Upstream steps in zendesk-ticket-form-static-html-proxy honor timeoutMs and optional fallback JSON without leaking secrets."
    }
  ],
  "relatedRecipeSlugs": [
    "resend-email-api-static-site",
    "zendesk-api-customer-portal-proxy"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/zendesk-ticket-form-static-html-proxy",
    "markdown": "https://realcomposer.com/recipes/zendesk-ticket-form-static-html-proxy.md",
    "json": "https://realcomposer.com/recipes/zendesk-ticket-form-static-html-proxy.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=zendesk-ticket-form-static-html-proxy&via=agent"
  }
}