# \[New Feature\] Ability to read parameters in the URL for API workflow endpoints

**URL:** <https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369>\
**Category:** Announcements\
**Created:** [August 9, 2018, 9:53pm UTC](https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369 "2018-08-09T21:53:24Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [August 9, 2018, 9:53pm UTC](https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369/1 "2018-08-09T21:53:24Z")

</div>

Hello,

We just added a small addition to how you can define parameters for API endpoints. Usually, parameters should be in the body of the request, but some services sometime add a parameter in the URL. To be able to read (and use in subsequent actions) the parameter, you can check the box ‘Querystring’.

![36%20PM](https://us1.discourse-cdn.com/bubble/original/3X/d/d/ddf532f0d6a405f38f061781899c97319bc7a7ca.png)

For instance, with such settings, the URL is expected to be [domain.com/api/1.1/wf/test?number=3034](http://domain.com/api/1.1/wf/test?number=3034) and “text” will be defined in the body of the request.

This feature should only be used when the service that hits your endpoint adds a parameter to the URL. Note also that if a parameter is set to be as a querystring, it will not be available in the schedule API workflow action, as in this case you can define the parameter normally.

---

<div class="post-metadata">

**Author:** ![Kfawcett](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/kfawcett/32/38097_2.png) [@Kfawcett](https://forum.bubble.io/u/Kfawcett)\
**Post date:** [August 9, 2018, 10:13pm UTC](https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369/2 "2018-08-09T22:13:05Z")

</div>

Thanks @emmanuel and Bubble team!

---

<div class="post-metadata">

**Author:** ![nicolas\_dap](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nicolas_dap/32/26345_2.png) [@nicolas\_dap](https://forum.bubble.io/u/nicolas_dap)\
**Post date:** [August 10, 2018, 10:51am UTC](https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369/3 "2018-08-10T10:51:13Z")

</div>

Great.  
Another improvement would be to be able to send list of data within a field (usually ‘data’) with the API Connector or when returning data from an API Endpoint.  
Is this “nested fileds” feature on the roadmap ?

---

<div class="post-metadata">

**Author:** ![gqidea](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gqidea/32/27168_2.png) [@gqidea](https://forum.bubble.io/u/gqidea)\
**Post date:** [August 11, 2018, 11:14pm UTC](https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369/4 "2018-08-11T23:14:51Z")

</div>

Awesome!!! Thanks @emmanuel

---

<div class="post-metadata">

**Author:** ![bcronin7](https://avatars.discourse-cdn.com/v4/letter/b/bbce88/32.png) [@bcronin7](https://forum.bubble.io/u/bcronin7)\
**Post date:** [August 13, 2018, 2:09pm UTC](https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369/5 "2018-08-13T14:09:26Z")

</div>

@nicolas_dap Nested fields would indeed be very very helpful and open up a greater range of services that could send data to an API workflow, but they create an associated need around looping, or doing some kind of workflow action for each nested item. That can probably be solved from a design standpoint – it’s similar to “schedule an API on a list” – but we can be sure there will be performance limitations.

And then there’s the problem of multiple layers within a nested list, which would get a little confusing in terms of workflows, which have a bias towards linear flows with an “only when …” statement to handle conditional tests.

The query string parameters are a big move forward though, and open the doors for some integrations that were previously impossible or required Frankenstein solutions.

---

<div class="post-metadata">

**Author:** ![nicolas\_dap](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nicolas_dap/32/26345_2.png) [@nicolas\_dap](https://forum.bubble.io/u/nicolas_dap)\
**Post date:** [August 13, 2018, 3:59pm UTC](https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369/6 "2018-08-13T15:59:06Z")

</div>

Hi @bcronin7, are you from the Bubble team for making assumptions about the issues behind the scene ?

---

<div class="post-metadata">

**Author:** ![bcronin7](https://avatars.discourse-cdn.com/v4/letter/b/bbce88/32.png) [@bcronin7](https://forum.bubble.io/u/bcronin7)\
**Post date:** [August 13, 2018, 5:16pm UTC](https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369/7 "2018-08-13T17:16:48Z")

</div>

No, I’m not from the Bubble team. But I’ve spent a lot of time on the forums and read other posts about capacity and reasons why user move to a dedicated plan.

One of the big factors in performance appears to be things that require loops – for example scheduled workflows, actions on lists, or CSV uploads.

---

<div class="post-metadata">

**Author:** ![chad](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/chad/32/89415_2.png) [@chad](https://forum.bubble.io/u/chad)\
**Post date:** [September 7, 2018, 12:55pm UTC](https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369/8 "2018-09-07T12:55:44Z")

</div>

Is it possible to use query string aswell as detect data. I’m failing to figure out how I can recieve my detected data and also recieve my url parameter

---

<div class="post-metadata">

**Author:** ![chad](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/chad/32/89415_2.png) [@chad](https://forum.bubble.io/u/chad)\
**Post date:** [September 8, 2018, 5:21am UTC](https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369/9 "2018-09-08T05:21:35Z")

</div>

@emmanuel

Is there anything on the road map for this feature to work in conjunction with “detect data”

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [September 26, 2018, 2:13am UTC](https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369/10 "2018-09-26T02:13:17Z")

</div>

So, this feature is awesome. BUT, since it is now possible to create API Workflows that have no need for a BODY component, shouldn’t such API Workflows be allowed to be triggered by **GET** as well as **POST** methods?

Here is a real-world use case that drove me to drink today:

> [@We Really Need a GET Method for Workflow APIs](http://forum.bubble.io/t/we-really-need-a-get-method-for-workflow-apis/38704):
>
> My vacation rental tools app makes embeddable/iFrame-able widgets. I had a little brainstorm today and got all excited about adding support for the oEmbed standard and getting them set up with embed.ly. After doing a bunch of work to make ensure they’re compatible with Embed.ly’s restrictions, and started setting up and testing some API Workflow endpoints, I remembered that… Even though you can now create API Workflow endpoints that only take parameters passed in the URL (that is, they require…

There’s no workaround for this. We _need_ the ability to have workflow (/wf) endpoints be triggered by either method as there are some standards (like oEmbed) that _require_ one method or the other.

That Bubble throws:

`{"statusCode":405,"body":{"status":"ERROR","message":"Wrong method. Should be a post"},"args":{"bubble_code":"1537917189069x708313714247196900"}}`

… if you hit such an endpoint with GET rather than POST is completely arbitrary and pointless in the context of what I’m describing above.

Can that just be removed, please? pretty please?

---

<div class="post-metadata">

**Author:** ![stavvit](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/stavvit/32/12464_2.png) [@stavvit](https://forum.bubble.io/u/stavvit)\
**Post date:** [January 24, 2019, 9:23am UTC](https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369/11 "2019-01-24T09:23:00Z")

</div>

I have the same problem, I’m trying to find a way how to comply with oEmbed standard. And I didn’t find a solution yet.  
@keith, did you find any workaround? Only outside of Bubble, like Amazon API Gateway?

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [January 24, 2019, 3:37pm UTC](https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369/12 "2019-01-24T15:37:11Z")

</div>

I haven’t gotten oembed to work yet. I did play with AAPI Gateway, and it may be possible to do all the stuff one needs there, but the scripting language is so awful… it IS effective and ez to transform gets to posts there, but that’s about the most useful thing I’ve done with it. Tried another api gateway as well without success.

I’m assuming you’ve seen my thread and replies about attempts to get oEmbed up and running. It would be SO easy in Bubble if there were a way to return custom HTTP responses.

---

<div class="post-metadata">

**Author:** ![stavvit](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/stavvit/32/12464_2.png) [@stavvit](https://forum.bubble.io/u/stavvit)\
**Post date:** [January 25, 2019, 9:09am UTC](https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369/13 "2019-01-25T09:09:05Z")

</div>

Thank you for the update. Yes, I’ve read your thread. Probably I should wait until Bubble implement this feature.

---

<div class="post-metadata">

**Author:** ![geo.chiv.george](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/geo.chiv.george/32/208433_2.png) [@geo.chiv.george](https://forum.bubble.io/u/geo.chiv.george)\
**Post date:** [June 28, 2021, 1:15pm UTC](https://forum.bubble.io/t/new-feature-ability-to-read-parameters-in-the-url-for-api-workflow-endpoints/35369/14 "2021-06-28T13:15:42Z")

</div>

I got really excited about this functionality than I realised that if you use the detect response feature this is not available. And of course it appears that you need to utilise the detect request date functionality to access nested fields. This makes webhooks so unusable without resorting to another hacky service like zapier to flatten your JSON. Come on guys, please add the ability to access URL parameters when using the detect response feature or atleast show us how to access parameters in a nested field.
