# How to send more than two parameters with post request

**URL:** <https://forum.rasa.com/t/how-to-send-more-than-two-parameters-with-post-request/19892>\
**Category:** Getting Started with Rasa\
**Created:** [October 16, 2019, 10:15am UTC](https://forum.rasa.com/t/how-to-send-more-than-two-parameters-with-post-request/19892 "2019-10-16T10:15:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kpreetsid](https://avatars.discourse-cdn.com/v4/letter/k/779978/32.png) [@kpreetsid](https://forum.rasa.com/u/kpreetsid)\
**Post date:** [October 16, 2019, 10:15am UTC](https://forum.rasa.com/t/how-to-send-more-than-two-parameters-with-post-request/19892/1 "2019-10-16T10:15:51Z")

</div>

Hey, I’m testing a basic chatbot and has successfully integrate that to my frontend UI as well. As per the documentation, we can send a post request as mentioned below.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/4/456274d0f238f8daafadc9e95efb1dc09bbdbc03.png)

I’m successfully capturing the sender\_id in my custom actions with the help of below function:

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/c/ca884b243c7c71c71dd78d299d87ede4d56bc7c3.png)

However my requirement is to capture one more paramter from frontend UI (i.e. company\_code), later i’ll use both these parameters in custom actions to call APIs for data extraction. Any idea how to do this because I’m pretty new to this and have no idea how to send more parameters in post requests and later how to capture these in custom actions.

PS. I tried to add one more parameter with the post request but was getting error for that parameter, once my custom action for getting executed.

---

<div class="post-metadata">

**Author:** ![matthiask](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@matthiask](https://forum.rasa.com/u/matthiask)\
**Post date:** [October 16, 2019, 11:24am UTC](https://forum.rasa.com/t/how-to-send-more-than-two-parameters-with-post-request/19892/2 "2019-10-16T11:24:12Z")

</div>

You need to implement your own custom channel. You can use the class RestInput Class as base class.

---

<div class="post-metadata">

**Author:** ![kpreetsid](https://avatars.discourse-cdn.com/v4/letter/k/779978/32.png) [@kpreetsid](https://forum.rasa.com/u/kpreetsid)\
**Post date:** [October 16, 2019, 11:53am UTC](https://forum.rasa.com/t/how-to-send-more-than-two-parameters-with-post-request/19892/3 "2019-10-16T11:53:03Z")

</div>

Do i need to update [rasa](https://github.com/RasaHQ/rasa/tree/master/rasa)/[core](https://github.com/RasaHQ/rasa/tree/master/rasa/core)/[channels](https://github.com/RasaHQ/rasa/tree/master/rasa/core/channels)/ **channel.py** in my rasa’s directory or need to define a new channel in /[rasa](https://github.com/RasaHQ/rasa/tree/master/rasa)/[core](https://github.com/RasaHQ/rasa/tree/master/rasa/core)/ **channels** /??

---

<div class="post-metadata">

**Author:** ![matthiask](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@matthiask](https://forum.rasa.com/u/matthiask)\
**Post date:** [October 17, 2019, 7:31am UTC](https://forum.rasa.com/t/how-to-send-more-than-two-parameters-with-post-request/19892/4 "2019-10-17T07:31:43Z")

</div>

You can do both. You can extend the channel.py file with you own class or write you class in an own file.
