Hello,
I’m looking to connect a specific data type in my Bubble application with an external server-side code using an API. How do i enable API for my data type or specific table, Could you guide me through the steps to set up an API and establish the connection effectively?
Thank you in advance for your assistance!
There are two ways either you can use a Data API or API workflow. I suggest using Workflow API.
- Create an API workflow make it publicly visible and do not check the run without authentication.
- Generate an API key in your app, which you use to authenticate your API call which you send from another app.
- inside the API workflow do the action and at the end use a
return data
action which will give a response.
Form other apps call your API workflow with the token you generated. : website home URL/api/1.1/wf/API workflow name?api_token=generated token form bubble.
That set.