Content Type

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 —

			
            HTTP Accept Header		Content Type Resolution
            
            application/json		JSON
            application/xml		XML
            text/plain			CSV
            No Accept Header		JSON (Default)
            

For POST requests:

In addition to "Accept" header, you'll need to set the "Content-type" header as well..

Content-type : application/json