Bubble Data API 401 Error

Hi All,
I’m having issues trying to connect to the bubble data api. I’ve checked all the boxes for the various data types to allow access, but it still keeps giving me a 401 error. I’m currently on the free plan. Also getting the same error code when testing through postman



note: I’ve also attempted other variations in the header section of the get request in postman (Authorization: Bearer f4c70…, excluding content-type from the headers, etc.) - same error every time though

The Authorization header value must start with Bearer
Bearer f4c7035…

Also, you see the last error message say you are not exposing API. Go in settings and set Data API checkbox and the DB you want to expose

Hi @Jici, thanks for your quick response.
I’ve updated the necessary settings in bubble and postman (screenshot below), however I’m still seeing the same error



Do you have a different message error? Which plan are you? Data API is not available on free plan. Double check your API key

It’s the same error message as before (401). I’m currently on the free plan, but I had assumed that the free plan allows requests to me made in test mode (…/version-test/api/1.1/…) as stated in settings > api: “Test this feature for free, then upgrade to Starter to deploy!”

(Unless of course I’m mistaken or have misunderstood?)

Humm. Guess this may not be correct how it’s display the message in settings (but try to reach Bubble support to be sure). What I believe is that you can test it for free IF you activate the Starter plan 2 week trial. Click on upgrade and you will have the option to activate the trial

Ahh okay. I no longer have access to the 2 week free trial (I think that only remains active for the first 10 days), but I upgraded to the starter plan as you suggested and now the request works as expected.

Thanks so much for your help! :slight_smile:

1 Like