LendingClub web service APIs support JSON format for the request payload and the response. Some APIs also support XML and CSV format for the response. For details on which APIs support XML and CSV, please refer the each API Resource details section.
For APIs which do support XML and CSV in their response, the desired format needs to be supplied by the caller via the HTTP Accept header in the following format —
Accept: application/json
List of valid headers -
For POST requests:
In addition to "Accept" header, you'll need to set the "Content-type" header as well..
Content-type : application/json