Forum Academy Marketplace Showcase Pricing Features

Encode BasicAuth to Base64 format [API Call]

Hi guys -

I am trying to build an API connection with a payment platform.

I am stuck on Authentication:

The documentation requires me to encode the Basic Auth in Base64 format but I am unsure how to do this. Does anyone have any idea how I can do this:

Click on Add a shared Header
Enter the key as Authorization
Enter the value as the same username converted to base64.

To get the username’s base64 value:
Use an online convertor like this one :

That should make it work.

Ranjit | Blur Apps

1 Like

Thankyou Ranjit! Appreciate you taking the time to comment.

I think you are quite correct! I am however getting a new error code:

I am wondering if this is because the documentation requires the request to be sent over HTTPS.

The only option available in Bubble is HTTP Basic Auth

Or perhaps this is not a thing

Usually the HTTPS part is managed internally.
Try adding ‘:’ at the end of the API Key value and then converting that into Base64? That seems to be what the doc says.

1 Like

Set it to “Self Handled”.

Then add Basic longstringthatyougeneratedaspartofbase64 in the key of your Header for Authorization


Thanks so much Nigel - this did the trick.

Really appreciated!

Appreciate you taking the time to help me. Unfortunately this did not quite work, but got us on the right track! Thank you

Your initial setup is correct, nothing wrong with it. You don’t have permissions to run the API request. Reach out to Xendit. Perhaps you only have access to sandbox.

This topic was automatically closed after 70 days. New replies are no longer allowed.