Aggregate zendesk tickets with hubspot deals
Support plus revenue context for agents
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.
Serial Zendesk and HubSpot calls slow Retool pages
Each extra Zendesk and HubSpot hop adds hundreds of milliseconds and another OAuth refresh path your UI must manage.
- One slow upstream blocking an entire page
- Partial failures leaving UI in inconsistent states
- Duplicate auth refresh logic per service
How RealComposer Solves This at the Edge
Bind vault keys to the Worker
Create ZENDESK_API_TOKEN, HUBSPOT_ACCESS_TOKEN vault entries, then bind them to this pipeline step headers with {{secrets.NAME}} placeholders.
Set headers, mapping, and cache TTL
Use GET against https://{{secrets.ZENDESK_SUBDOMAIN}}.zendesk.com/api/v2/tickets.json. Allowed origins on the client token should match leave cache ttl at 0 when each response is user-specific (include userid or record id in query params before enabling cache).
Query from Retool
Call https://realcomposer.com/v1/workspace/aggregate-zendesk-with-hubspot-deals with a restricted rc_live_ client token. Retool never sends upstream secrets.
// REST resource or JS query
const rows = await fetch('https://realcomposer.com/v1/workspace/aggregate-zendesk-with-hubspot-deals', {
headers: { Authorization: 'Bearer rc_live_token' }
}).then(r => r.json());
{
"requestId": "req_aggregat",
"upstreamLatencyMs": 142,
"audit": {
"region": "edge",
"trace": "aggregate-zendesk-with-hubspot-deals"
},
"payload": {
"id": "sample_id",
"status": "active",
"nested": {
"tags": [
"demo"
],
"internal": true
},
"unused_blob": {
"foo": "bar",
"bar": "baz"
}
}
}
{
"zendesk_ticketId": "sample",
"zendesk_subject": "sample",
"hubspot_contactId": "sample",
"hubspot_email": "sample"
}
Recipe Specs
- HTTP method
- GET
- Upstream calls
- 2
- Edge cache TTL
- No caching
- Client auth
- Restricted client token
- Mapped output fields
- 4
- Payload
- 255 B to 110 B (-57%)
curl -X GET "https://realcomposer.com/v1/workspace/aggregate-zendesk-with-hubspot-deals" \ -H "Authorization: Bearer rc_live_client_token"
Developer Questions & Troubleshooting
Is it safe to log Zendesk responses in Retool?
Store ZENDESK_API_TOKEN, HUBSPOT_ACCESS_TOKEN for aggregate-zendesk-with-hubspot-deals. Retool never sees decrypted values.
When does edge caching apply to this recipe?
aggregate-zendesk-with-hubspot-deals vault headers attach server-side, but Anthropic or OpenAI model and messages must come from the client body.
How do I rotate upstream credentials?
Allowed origins on the aggregate-zendesk-with-hubspot-deals client token restrict which domains may call the edge URL.
Sources & Definitions Used in This Answer
Deploy this Retool + Zendesk, HubSpot Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.