Retool connect paddle refunds securely
Finance ops Paddle adjustments without keys in queries
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.
CORS blocks Paddle in Retool
Low-code Retool tools expose connector tokens in shared workspaces, so Paddle credentials leak to every editor.
- Browser console CORS errors blocking launches
- Editors pasting secrets into reusable components
- Inability to test locally without disabling security
How RealComposer Solves This at the Edge
Store upstream credentials in Secret Vault
Create PADDLE_API_KEY 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://api.paddle.com/adjustments?action=refund&per_page=20, 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/retool-paddle-refunds-secure-proxy', {
headers: { Authorization: 'Bearer rc_live_token' }
}).then(r => r.json());
{
"requestId": "req_retool-p",
"upstreamLatencyMs": 142,
"audit": {
"region": "edge",
"trace": "retool-paddle-refunds-secure-proxy"
},
"payload": {
"id": "sample_id",
"status": "active",
"nested": {
"tags": [
"demo"
],
"internal": true
},
"unused_blob": {
"foo": "bar",
"bar": "baz"
}
}
}
{
"subscriptionId": "sample",
"status": "sample"
}
Recipe Specs
- HTTP method
- GET
- Upstream calls
- 1
- Edge cache TTL
- No caching
- Client auth
- Restricted client token
- Mapped output fields
- 2
- Payload
- 253 B to 45 B (-82%)
curl -X GET "https://realcomposer.com/v1/workspace/retool-paddle-refunds-secure-proxy" \ -H "Authorization: Bearer rc_live_client_token"
Developer Questions & Troubleshooting
Does Retool need CORS changes after adding RealComposer?
Store PADDLE_API_KEY for retool-paddle-refunds-secure-proxy. Retool never sees decrypted values.
When does edge caching apply to this recipe?
retool-paddle-refunds-secure-proxy forwards client JSON to POST upstreams unchanged; secrets interpolate only in URLs and header templates.
What happens if an upstream step times out?
Upstream steps in retool-paddle-refunds-secure-proxy honor timeoutMs and optional fallback JSON without leaking secrets.
Sources & Definitions Used in This Answer
Deploy this Retool + Paddle Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.