How to set API-KEY as variable


So I have connected this API with the Bubble plugin, the authentication is done through “Private key in header”.

I want users to input their own API-KEYS so I need to find a way to dynamically change this key, but it appears to be none.

Any solutions? Thanks!

This thread might help:

I think you’ll have to set the authentication to “None or self handled” and then make a header for your authorization key and value. You’ll have to make that key not private, and then you can fill in the key dynamically. Just make sure you set your privacy rules so you don’t reveal the API key.

Disclaimer: I’m still new to this, and I still have some security concerns with this method since I think the API key would be handled on the browser level. Maybe someone with more experience can weigh in.

1 Like