Hi everyone,
I'm integrating Retool Embed into my React app with an Express backend. Since embed URLs are single-use, I generate a new embedUrl
each time a user accesses the Retool view (there's a sidebar to navigate across multiple views, where only one is a Retool embedded app). This works fine, but when users frequently switch views, it results in multiple requests to /api/embed-url/external-user
.
Considering the API rate limits:
API Rate Limits
- Up to 300 points in a 60-second window
- Endpoint costs:
- Apps, Folders, Users: 2 points
- Others: 5 or 10 points
I'm concerned about hitting these limits if many users navigate simultaneously.
My questions are:
- What is the point cost for the
/api/embed-url/external-user
endpoint? - How can I handle frequent view changes without exceeding rate limits?
- Is there a secure way to reuse or extend the validity of the
embedUrl
? - Any best practices for caching or session management in this scenario?
Any guidance would be greatly appreciated!
Thank you!