No. You don’t need to.
I used my favorite AI to make my answer clearer and more concise without going into a ton of details and confusing you. My answer would be longer and probably more confusing:
To handle the situation where you want to generate a token and make an API call without saving the result in the database, you can follow this process. First, you generate a token on the page when the user makes a selection. This token acts like a unique identifier for the user’s request.
Next, you use the “Schedule backend workflow” feature in Bubble to send this token to your backend. In the backend workflow, instead of saving the result of the API call in the database, you can process the user’s data and make the external API call. After getting the response from the API, you can send the result directly back to the frontend without storing it anywhere.
To keep track of how many times the user has called the API without saving their data, you can create a simple log in the database that records the fact that an API call was made, using the token to connect the request with the response. This way, you maintain the privacy of the user’s data, avoid unnecessary storage in the database, and still keep track of their API usage for quota purposes.
In summary, by generating a token, using backend workflows for processing, and sending results back to the frontend without saving them, you can achieve your goals of privacy and tracking efficiently.