Getting log in user token

Hello. I am making an Data API calls to bubble from an external server.

The way the logic works:

  1. A logged in user makes an API call from bubble via the API connector to my external server. (I need a user token here)
  2. In the external server I make a Data API to bubble to modify some items in the DB.

The problem is that I could store the the PRIVATE KEY in my external server, but then privacy rules don’t work, because the key has admin rules, and I think then could be some security issues.

Is there a way to get like a user token, send it to my server, and put that user token to Data API request header that it would apply privacy rules?

1 Like

https://manual.bubble.io/help-guides/integrations/api/the-bubble-api/authentication/as-a-user

Follow-up question, how would get the token from the backend workflow and use in other API Connector API calls?