I need help with API pre-request script

I have this API to integrate but it has a pre-request script that is used to generate the passwordhash, I am not sure how this can be done in the bubble API connector.

Hello friend. What is the response to this first API call?

Access denied


in nocode that would be setting up actions to calculate what you need before the api request.
In code, with a server side action, you do your calculation and then fetch.

You need to create server side plugin for this. Run the pre-script code in Bubble server server via the plugin. Then pass the returned “passwordhash” to the api connector.

Checkout Bubble Plugin Development Course?

So when this is done can the passwordhash be part of the api call from the bubble api connector

@joneschristopher379, it won’t directly output into the Bubble API connector.

However, you have two options:

  1. Retrieve the response from the server-side action and then pass this output to the API connector in the subsequent step.
  2. Alternatively, you can make the API call directly within the server-side action, streamlining the process into a single step.

Checkout Bubble Plugin Development Course?