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
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?
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.
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