The documentation clearly states the returned object will be json, yet XML is actually returned. https://github.com/agilecrm/rest-api#1101-search-contact-by-email