add: api for request bodies.
Merge pull request #1 from snoj/payloadapi

add: api for request bodies.