Call zendesk api from retool without exposing api token
Retool support desks with vault-backed Zendesk auth
Internal tools query tickets without embedding subdomain API tokens in queries. For "call zendesk api from retool without exposing api token", store ZENDESK_API_TOKEN in Secret Vault, call https://{{secrets.ZENDESK_SUBDOMAIN}}.zendesk.com/api/v2/tickets.json from a Worker, and let Retool hit only https://realcomposer.com/v1/workspace/call-zendesk-from-retool-securely with an rc_live_ client token.
Why Retool leaks Zendesk credentials
Attackers routinely extract Zendesk secrets from Retool builds. Direct browser calls also expose internal error payloads with hostnames.
- Production Zendesk keys copied from Retool bundles
- Compliance violations after credential leaks
- Attackers replaying vault-grade scopes from a laptop
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.
Target the real upstream URL
Configure headersTemplate to inject vault secrets, target https://{{secrets.ZENDESK_SUBDOMAIN}}.zendesk.com/api/v2/tickets.json, and Add output mapping fields that mirror the JSON contract your screen already expects.
Query from Retool
Allowed origins on the token should list every Retool host that calls this URL.
// REST resource or JS query
const rows = await fetch('https://realcomposer.com/v1/workspace/call-zendesk-from-retool-securely', {
headers: { Authorization: 'Bearer rc_live_token' }
}).then(r => r.json());
{
"requestId": "req_call-zen",
"upstreamLatencyMs": 142,
"audit": {
"region": "edge",
"trace": "call-zendesk-from-retool-securely"
},
"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/call-zendesk-from-retool-securely" \ -H "Authorization: Bearer rc_live_client_token"
Developer Questions & Troubleshooting
Which Zendesk credential belongs in the vault for this pipeline?
Log request IDs for call-zendesk-from-retool-securely, not raw Zendesk payloads, because upstream bodies may include PII.
What cache key does RealComposer use?
call-zendesk-from-retool-securely vault headers attach server-side, but Anthropic or OpenAI model and messages must come from the client body.
Can I restrict which domains call this pipeline?
Upstream steps in call-zendesk-from-retool-securely honor timeoutMs and optional fallback JSON without leaking secrets.
Sources & Definitions Used in This Answer
Deploy this Retool + Zendesk Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.