RealComposer
RetoolZendeskSecurity & Secret Vault

Call zendesk api from retool without exposing api token

Retool support desks with vault-backed Zendesk auth

Direct Answer & Architecture Summary

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.

Security LevelAES-256-GCM Vault
Edge LatencySub-10ms Response
InfrastructureZero Server Maintenance
The Problem Solved

Why Retool leaks Zendesk credentials

Attackers routinely extract Zendesk secrets from Retool builds. Direct browser calls also expose internal error payloads with hostnames.

Critical Security & Operational Risks:
  • Production Zendesk keys copied from Retool bundles
  • Compliance violations after credential leaks
  • Attackers replaying vault-grade scopes from a laptop
Architecture & Step-by-Step Implementation

How RealComposer Solves This at the Edge

1

Store upstream credentials in Secret Vault

Create ZENDESK_API_TOKEN vault entries, then bind them to this pipeline step headers with {{secrets.NAME}} placeholders.

2

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.

3

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());
                  
Payload Slimming Comparison
77% Bandwidth Reduction
Raw Upstream Response252 B
              {
  "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"
    }
  }
}
            
RealComposer Slimmed Edge Payload58 B
              {
  "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%)
Call from Terminal or Client
curl -X GET "https://realcomposer.com/v1/workspace/call-zendesk-from-retool-securely" \
  -H "Authorization: Bearer rc_live_client_token"
Frequently Asked Questions

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

Instant Deployment

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.

CLONE THIS RECIPE
Related Architecture Recipes