Retool Public App Hide REST API Credentials
Never place API_BEARER_TOKEN inside Retool source. RealComposer injects them when calling https://jsonplaceholder.typicode.com/users/{{query.userId}}, so browsers see only a client token.
Production-ready templates for calling third-party APIs from Retoolwithout exposing secrets or maintaining a custom backend.
Retool safe & unsafe practicesNever place API_BEARER_TOKEN inside Retool source. RealComposer injects them when calling https://jsonplaceholder.typicode.com/users/{{query.userId}}, so browsers see only a client token.
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.
Contentful CMA writes from Retool via edge with scoped tokens. For "contentful management api secure proxy retool", store CONTENTFUL_MANAGEMENT_TOKEN in Secret Vault, call https://api.contentful.com/spaces/{{query.spaceId}}/entries from a Worker, and let Retool hit only https://realcomposer.com/v1/workspace/contentful-cma-proxy-retool with an rc_live_ client token.
Zendesk open tickets and related HubSpot deal stage in one Retool query. For "aggregate zendesk tickets with hubspot deals", store ZENDESK_API_TOKEN, HUBSPOT_ACCESS_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/aggregate-zendesk-with-hubspot-deals with an rc_live_ client token.
Zendesk requester and Stripe customer charges for support macros. For "merge zendesk with stripe customer support view", store ZENDESK_API_TOKEN, STRIPE_SECRET_KEY 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/merge-zendesk-with-stripe-support with an rc_live_ client token.
Opens clicks and send time without full report trees. For "mailchimp campaign stats trim for analytics card", store MAILCHIMP_BASIC_AUTH in Secret Vault, call https://{{secrets.MAILCHIMP_DC}}.api.mailchimp.com/3.0/lists/{{query.listId}}/members?count=10 from a Worker, and let Retool hit only https://realcomposer.com/v1/workspace/trim-mailchimp-campaign-stats-json with an rc_live_ client token.
Compose and cache merged marketing audience JSON. For "mailchimp and hubspot combined cache layer", store MAILCHIMP_BASIC_AUTH, HUBSPOT_ACCESS_TOKEN in Secret Vault, call https://{{secrets.MAILCHIMP_DC}}.api.mailchimp.com/3.0/lists/{{query.listId}}/members?count=10 from a Worker, and let Retool hit only https://realcomposer.com/v1/workspace/mailchimp-hubspot-shared-edge-cache with an rc_live_ client token. Enable 300s GET cache only when query params identify the resource.
Fix "how to connect stripe to retool securely" by pointing Retool at RealComposer. Vault secrets authenticate https://api.stripe.com/v1/customers/{{query.customerId}}; client tokens gate your public URL.
Retool browsers cannot call https://jsonplaceholder.typicode.com/users/{{query.userId}} directly because of CORS and hidden credentials. RealComposer responds to OPTIONS and proxies authorized traffic.
Retool queries RealComposer for Paddle write operations. For "retool connect paddle refunds securely", store PADDLE_API_KEY in Secret Vault, call https://api.paddle.com/adjustments?action=refund&per_page=20 from a Worker, and let Retool hit only https://realcomposer.com/v1/workspace/retool-paddle-refunds-secure-proxy with an rc_live_ client token.