Zendesk api secure proxy for customer portal
Public ticket status views without agent credentials
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.
Zendesk keys in Frontend / Web network tabs
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.
- Shared Frontend / Web projects revealing Zendesk tokens
- Sudden Zendesk quota burn from scripted abuse
- Inability to rotate keys without redeploying clients
How RealComposer Solves This at the Edge
Store upstream credentials in Secret Vault
Create ZENDESK_API_TOKEN vault entries, then bind them to this pipeline step headers with {{secrets.NAME}} placeholders.
Configure upstream steps and output mapping
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).
Call from Frontend / Web
Allowed origins on the token should list every Frontend / Web host that calls this URL.
const res = await fetch('https://realcomposer.com/v1/workspace/zendesk-api-customer-portal-proxy', {
headers: { Authorization: 'Bearer rc_live_your_token' }
});
{
"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"
}
}
}
{
"ticketId": "sample",
"subject": "sample",
"status": "sample"
}
Recipe Specs
- HTTP method
- GET
- Upstream calls
- 1
- Edge cache TTL
- No caching
- Client auth
- Restricted client token
- Mapped output fields
- 3
- Payload
- 252 B to 58 B (-77%)
curl -X GET "https://realcomposer.com/v1/workspace/zendesk-api-customer-portal-proxy" \ -H "Authorization: Bearer rc_live_client_token"
Developer Questions & Troubleshooting
Which Zendesk credential belongs in the vault for this pipeline?
Store ZENDESK_API_TOKEN for zendesk-api-customer-portal-proxy. Frontend / Web never sees decrypted values.
Does POST traffic get cached?
zendesk-api-customer-portal-proxy POST steps bypass caches.default even if cacheTtlSeconds is set in the dashboard.
How do I rotate upstream credentials?
Allowed origins on the zendesk-api-customer-portal-proxy client token restrict which domains may call the edge URL.
Sources & Definitions Used in This Answer
Deploy this Frontend / Web + Zendesk Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.