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

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?

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