Hi Parabola x Bubble Squad
Wanted to share some guidance on connecting Parabola and Bubble through our API connectors!
Authenticating Bubble
Bubble is authorized with an API key. You can retrieve this key in Bubble by going to Settings
ā API
ā Generate API Key
within your Bubble App
- In Parabola, under the āAuthenticationā section of our API steps, you can set the Auth type to āBearer Tokenā, and paste your token in the box below
- Also be sure to install the āAPI Connectorā plugin from the Bubble plugin tab
- While on the
API
tab, youāll also want to check the boxes for all data objects youād like to make accessible through API under theEnable Data API
section, and also check the box that saysUse field display for ID instead of ID for key names
NOTE: You can work with the API while on a Free Bubble plan if youāre testing with your development database, as indicated by the version-test
part of the API endpoint URL. If you wish to use the API on your live Bubble app, youāll need a paid plan.
Send data from Bubble to Parabola using a Webhook
-
Get your Parabola webhook URL, and initialize your call after setting up your API Connector, as seen below
-
In your workflows in Bubble, select the Plugin action āParabola - Parabolaā and enter the appropriate JSON in the ā(param.) messageā input field using dynamic Bubble values (ex. āCurrent Userās phone numberās valueā)
Pull Data from Bubble to Parabola using the "Pull from API" Step
- Pagination: By default, the first 100 rows will be returned by the API until you add pagination settings. You can add these settings for cursor-based pagination in the āPaginationā tab to return additional data. If youāre still not pulling in all rows, you can increase the āMax pages to fetchā
- Rate Limiting: Requests are rate-limited by default to 1,000 requests/minute per application and version (live / development)
Send data from Parabola to Bubble
Configuring Bubbleās API
-
The dev endpoint and live endpoints are different - the dev endpoint will include āversion-test.ā You can test the API with a free Bubble plan, but will need to upgrade in order to access live endpoints
-
The endpoint should end in ā/obj/keynameā (ex. if I have a data type called āvideo,ā my endpoint should end in ā/obj/videoā)
-
In Bubble, check the proper boxes under āSettingsā ā āAPIā to enable Data API, and also enable the appropriate resources. Also be sure to check the box that says āuse field display instead of ID for key name.ā If you donāt, Parabola will be unable to find the resource. This tab is also where you can generate an API key, which can be placed in the Authentication tab of the Parabola export step as a Bearer token
-
Under āDataā ā āPrivacy,ā be sure to set privacy settings for the resources that you plan to create/ modify/ delete
-
You may also need to provide a Google Geocode API key and Google Map API key under the āSettingsā ā āGeneralā tab in order to properly access your API
Configuring Parabola
-
Creating or Deleting fields in Bubble: Use a POST or DELETE request
-
Updating fields in Bubble: You can use a PATCH request to update fields in Bubble in your āSend to APIā step. In the API Endpoint URL, you can add ā{_id}ā to the end of the request to specify the object to be updated (ex. /obj/videos/{_id}). Feel free to reference Bubbleās documentation here on PATCH requests.
NOTE: to get the recordās unique Bubble ID, you can use the āPull from APIā step to pull in the data with IDs, and then use the āCombine Tablesā step to combine your new data with the existing IDs.
-
Trying to create new object in bulk? Check out Bubbleās āBulk create new thingsā endpoint
-
Request Body: In Parabola, in the āSend to APIā step, the āRequest Bodyā is where you āmapā fields in Bubble to Parabola columns. This text box should include JSON like so:
{
"dish": "{dish Title}",
"url": "{Path URL}",
"handle": "{handle}",
"creatorID": "{message User}"
}
In this example, ādishā is an attribute in Bubble, and ā{dish Title}ā is a column in Parabola. To help format your JSON, reference a tool such as https://jsonlint.com/.
Good luck using Parabola to enrich and manipulate your Bubble data! Feel free to reply to this post with any questions or recommendations on how this post can be improved.