You are sending the numerical value in the URL when you should be sending it inside the POST request. That value parameter you set up (type number) is what is used to read the parameter in the POST request so you can then map it to your database in the Create New Thing Action.
When page is loaded and when get data from URL (parameter = amount) is not empty > schedule API workflow
Another possible route is to use Zapier to POST to the API endpoint. Not sure how your url with parameters is being generated in the first place, but you could use Zapier webhooks to receive the data you need and then send to endpoint.
Hey @emmanuel, I want to revive this thought and see if it’s something you guys can easily add…
Can we add the ability to “get data from URL” within the API Workflows area?
One use case is the original question in this post, but from what I understand his payload was fully sent in the URL, so there were workarounds. I have another use case when retrieving a webhook from an external shopping cart service. The issue is that the webhook payload does not include user account info, so we have no way of knowing whose data is coming in.
If we can have our users set up their webhook configuration with the endpoint plus an identifying parameter that contains their Bubble unique id (or something), we can then read that parameter as well and know whose shopping cart the data is coming from.
Part of this issue is the limited webhook data and the fact that the service itself has no API to begin with. Seeing as "get data from URL " inside API workflows would solve this issue for us completely (not to mention provide @thomas.schijf a much cleaner solution for his original question), it might be worth adding? If possible…?
Sorry, I’m not talking about Get data from an external API. In API Workflows, we don’t have the option “Get data from page URL” like we do in the regular app pages.
What I want to do is append a URL parameter to this endpoint so that each of my app users who want to integrate with their SamCart account will enter a “unique” endpoint in their SamCart settings. When a webhook goes out from SamCart to my app’s endpoint, I then want to retrieve the url parameter in addition to the rest of the JSON payload. I want to do this so that I know who the data is coming from when I go to create a thing in this API workflow. The webhook sends most of the data except for any identifying user information, so my parameter is to help me identify who it should be mapped backed to in my Bubble database.
It’s possible URL parameters in API endpoints isn’t a thing, and I just didn’t know… but if it is, my question to you is if that function can be added (Get data from page url).
I actually tabled this , but I will try tomorrow and let you know. You added a URL parameter to the endpoint and then added that parameter as a key, yes?
Ok @mishav I just tried this out on a very basic setup, and can confirm that it doesn’t work for me either The JSON payload comes in fine from the service (I’m testing with Shopify) but my URL param gets ignored.