Ensure we handle raw data passed to the API

Raw data is accidentally ignored when passed to the API.

Props @tlovett1 for catching this. Fixes #91.