We are hitting a wall with rate limiting on our latest AppFoundry integration. We have a premium app that syncs custom object data with Architect flows, and despite implementing exponential backoff and respecting the standard 10 req/sec limit per tenant, we are consistently getting 429 Too Many Requests errors on GET /api/v2/architect/flows and subsequent POST updates.
Our implementation uses the standard OAuth client credentials flow for service-to-service auth. We are passing the X-Genesys-Client header with our unique app ID, and we have confirmed with our account manager that our app is registered correctly in the AppFoundry portal. The errors occur sporadically, usually when processing bulk updates for large enterprise clients with 500+ active flows.
Here is the response header snippet:
Retry-After: 1
X-Rate-Limit-Remaining: 0
X-Rate-Limit-Reset: 1715432000
We have tried throttling our requests to 5 req/sec, but the 429s persist. Is there a hidden global rate limit for AppFoundry apps that differs from the standard tenant limit? Or is there a specific header or configuration we are missing to ensure our requests are bucketed correctly under our app’s quota? We are using the Node.js SDK v4.2.1. Any insights from other partners dealing with high-volume Architect API usage would be appreciated.