Adalo API Call
With Pathfix, you can establish a connection with any OAuth service provider AND send API requests (payload) between these apps for your users.
Pathfix works as a pass-through API that stamps all your requests with the required tokens and sends your requests to the provider, allowing you to consume ANY API endpoint offered by the provider.
Please note, this is Step 2 of the Adalo integration setup and you need to have completed Step 1 (User Authorization) first before calling any API.
Need documentation for Adalo User Authorization setup? Check it here
All your API calls will have to go through the Pathfix API. The API is found in Pathfix under Code for API
- Select the app you would like to call the API for, click API Call
- Check the body Structure for for the API (this will be used in the 'body' section of the API Call in Adalo):
- All API calls made will need to be a POST to the Pathfix endpoint
- The body of the call will contain the providers endpoint URL, Method, Payload and Headers
To make the API call to pull data from the provider, you will need to use the Bubble API Connector Plugin.
There are 2 types of API calls:
- Get data (use Adalo Collection)
- Push data (use Adalo Custom Action)
Use this type of call to fetch data from the provider (GET)
- Create a External Collection in your Adalo app and give it a name
- Add the Pathfix URL as the API Base URL
- In the Auth Setup, click on ADD ITEM and select Query Param, add each of the following parameters:
- body.headers.x-pinc-response-data-at (this parameter helps clean up the response data. Add this param and enter the input value as rows.0.data)
- Click on Next and test the API call
- Your resulting page would look like this:
Note: Depending on the response, you may see a failed response message from Adalo and a Success response from Pathfix in the response section. Adalo requires the items in the response to mark it as successful. If this happens, go back to the Endpoints step in Adalo and in the Results Key section, add the location name of the response (e.g. items)
- Click on Create Collection to save the API call
Use this type of call to push data to the provider (POST, PUT, PATCH etc.). Adding an Action in an Adalo app is done by adding a Button first to your app.
- Add a Button to your app and click on Custom Action
- Create the event by adding the Name and Type
- Add the API Base URL as the Pathfix URL (always as a POST)
- Add the following Query Parameters
- Add the payload in the Body section
- Click on Run Test Request
- On receiving the success response, save the Action
The Custom Action gets saved for use in your Adalo app. You can choose to keep the button for the action, or you can delete the button and use the Action on any other user section on your app.
Need help? Reach out to us at email@example.com and we would be happy to assist!