# Get the value of "sender" from rest API request into actions

**URL:** <https://forum.rasa.com/t/get-the-value-of-sender-from-rest-api-request-into-actions/31372>\
**Category:** Rasa Open Source\
**Created:** [July 15, 2020, 1:02pm UTC](https://forum.rasa.com/t/get-the-value-of-sender-from-rest-api-request-into-actions/31372 "2020-07-15T13:02:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PraneethVasarla](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/praneethvasarla/32/9442_2.png) [@PraneethVasarla](https://forum.rasa.com/u/PraneethVasarla)\
**Post date:** [July 15, 2020, 1:02pm UTC](https://forum.rasa.com/t/get-the-value-of-sender-from-rest-api-request-into-actions/31372/1 "2020-07-15T13:02:04Z")

</div>

I’m using rest api to communicate with my rasa bot which is running in an ec2 server. the body of API request is:

`{"sender":"230","message":"hi"}`

Now I want to use the “sender” value in actions.py, as I want to run some database queries basing on the sender\_id.

Can someone please help me out on this?

---

<div class="post-metadata">

**Author:** ![MuraliChandran14](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/muralichandran14/32/9120_2.png) [@MuraliChandran14](https://forum.rasa.com/u/MuraliChandran14)\
**Post date:** [July 15, 2020, 1:50pm UTC](https://forum.rasa.com/t/get-the-value-of-sender-from-rest-api-request-into-actions/31372/2 "2020-07-15T13:50:29Z")

</div>

`senderid = tracker.current_state()['sender_id']` this will do the trick.

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