Sending data to the API can be done by setting HTTP headers, request parameter or as a JSON structure in the request body.
Accessing data in a valve is done by using expansion.
{
"firstkey": "fistvalue",
"secondkey": "secondvalue"
}
Lets say the request sent in something in the http header Authorization header.