# How to Use URL Parameters in POST method

**URL:** <https://discourse.laminas.dev/t/how-to-use-url-parameters-in-post-method/2337>\
**Category:** API Tools\
**Created:** [June 7, 2021, 5:29am UTC](https://discourse.laminas.dev/t/how-to-use-url-parameters-in-post-method/2337 "2021-06-07T05:29:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![faizy](https://avatars.discourse-cdn.com/v4/letter/f/ebca7d/32.png) [@faizy](https://discourse.laminas.dev/u/faizy)\
**Post date:** [June 7, 2021, 5:29am UTC](https://discourse.laminas.dev/t/how-to-use-url-parameters-in-post-method/2337/1 "2021-06-07T05:29:23Z")

</div>

`Collection Query String whitelist` under `Content Negotiation` in the Admin UI, or its analogue `collection_query_whitelist` key within `api-tools-rest` in `module.config.php` , whitelists query string arguments, allowing their value to be received by your REST resource’s `fetchAll($params = [])` method.

_this document is from →_   
[https://api-tools.getlaminas.org/documentation/recipes/use-url-parameters-to-filter-or-sort-data](https://api-tools.getlaminas.org/documentation/recipes/use-url-parameters-to-filter-or-sort-data)

Can we get parameters in POST method ?

---

<div class="post-metadata">

**Author:** ![vigcraig](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/vigcraig/32/819_2.png) [@vigcraig](https://discourse.laminas.dev/u/vigcraig)\
**Post date:** [June 8, 2021, 12:07pm UTC](https://discourse.laminas.dev/t/how-to-use-url-parameters-in-post-method/2337/2 "2021-06-08T12:07:01Z")

</div>

If I remember correctly, the post method uses the create function in the resource file, and the $data param holds the post values.

The post values are created via the interface via the ‘fields’ tab.
