Bubble Custom API cannot be called from Custom State

I am trying to call my API (called: Check Guess) [note: I am using the “API Connector” plugin. Using this to parse data from user input to the database and return result without bringing it into the front end/page] from within a Custom State on my main page (Index)
However Index does not seem to be able to “see” the API - and so cant create a custom state from it

I have been following the below video (by: Coaching No Code Apps), to learn Bubble, and at around the 40 minute mark where this is necessary
Building Wordle Without Code on Bubble (No Code Wordle Clone Part 2)

The only thing I can think of is that I forgot to click the setting to “Enable workflow API and backend workflows” until I was up to the part of the video where I had to create my backend workflow…
So it was created AFTER my main page was created and setup…
Wondering if this may somehow stop the main page seeing the API? and if maybe I need to link it somehow?

Any help would be greatly appreciated




API_Pages

You can also use the workflow:
Do when condition is true

Thanks

Hi @mavarik27 ,

Sharing some screenshots is always great to help others debug the problem, one from the API call would be very helpful here.

Having said that, I guess that maybe you’ve setup your API call as ‘Use as Data’, if that’s the case just change it to ‘Use as Action’ for it to appear in workflows.

I hope it helps!

Thanks - I’ve now uploaded 6 screenshots

Not sure I understand, sorry

Further information:
I cannot call my API at all from my index page. Not even from my Index pages Workflows
Yet when on “Backend Workflow” page, I can call my API fine. Screenshots reflect this

My API tests fine and works as expected from within the Backend Workflow
But for the purposes of testing I have removed all authentication

@jmalmeida I have tried both enabling and disabling the “Use as Data” tickbox - Still doesn’t work

I figured it out… It was 100% user error
When I was clicking on “Initialize” on the API itself, it would pop up with a window saying Initialise successful (or something to that effect)… I was pressing Cancel, rather than pressing Save.

So effectively I had not initialized my API at all - hence it was not able to be called :man_facepalming:

Thank you all for your help anyway

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