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:


Now I want to use the “sender” value in, 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.