Pass values into variable

Hello,
I have a POST API that I would like to script. I would like to pass values into a variable, and send the API request. Where do I begin?