# RestAPI Query String or Key/Values from Workflow Parameters

**URL:** <https://community.weweb.io/t/restapi-query-string-or-key-values-from-workflow-parameters/7620>\
**Category:** Ask us anything\
**Created:** [March 18, 2024, 2:23pm UTC](https://community.weweb.io/t/restapi-query-string-or-key-values-from-workflow-parameters/7620 "2024-03-18T14:23:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sleeusis](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sleeusis](https://community.weweb.io/u/sleeusis)\
**Post date:** [March 18, 2024, 2:23pm UTC](https://community.weweb.io/t/restapi-query-string-or-key-values-from-workflow-parameters/7620/1 "2024-03-18T14:23:32Z")

</div>

Hello, Is it possible to directly utilize the values of workflow parameters in a RestApi collection without needing to map them to context or global variables as key-value pairs?  
TIA

---

<div class="post-metadata">

**Author:** ![sleeusis](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sleeusis](https://community.weweb.io/u/sleeusis)\
**Post date:** [March 18, 2024, 8:23pm UTC](https://community.weweb.io/t/restapi-query-string-or-key-values-from-workflow-parameters/7620/2 "2024-03-18T20:23:25Z")

</div>

Silly me. There is a RESTAPI request action that I can wrap around instead of using the collection.  
Now, my question is if there would be any difference in using a RestAPI Collection vs making a RestAPI request in a workflow?  
Thanks

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [March 20, 2024, 10:31am UTC](https://community.weweb.io/t/restapi-query-string-or-key-values-from-workflow-parameters/7620/3 "2024-03-20T10:31:05Z")

</div>

Hi @sleeusis 👋

In WeWeb, collections are to GET data that might need to be paginated or filtered. You can still get data via a workflow but you won’t get some of the benefits of the collection. We usually recommend using workflows for other api calls like POST or DELETE.

We discuss this in a bit more detail here:

> **[Building an API management center](https://academy.weweb.io/scale-your-web-app/api-management-center/)**
>
> In this video, we show you how to build an API management center that will help you scale your app.

PS: in the case of Supabase as a data source, you actually have more options when using workflows, even for the get requests so that would be the exception where you might want to use workflows to fetch data instead of a collection. We explain a bit more why that’s the case here: [Supabase database select | WeWeb documentation](https://docs.weweb.io/workflows/actions/supabase/database-select.html)

Hope that helps!
