Insightly API- HTTP 400 using Contacts
Having successfully done my first API call on insightly using this syntax:
curl -v -H "Authorization: Basic *****BASE64 encoded API key here" https://api.insight.ly/v2.2/Contacts/Search?last_name=Jones
this returned as expected all the contacts in my insightly account with the last name jones.
however, doing exactly the same command yields a different result this morning, I get this:
< HTTP/1.1 400 A server exception was thrown.
< Cache-Control: no-cache
< Pragma: no-cache
< Content-Length: 48
< Content-Type: text/plain; charset=utf-8
< Expires: -1
< Date: Fri, 26 Aug 2016 12:10:48 GMT
< Set-Cookie: snaptid=sac1prdc01ut05; path=/; HttpOnly; Secure
* Connection #0 to host api.insight.ly left intact
The given key was not present in the dictionary
This is the same output I get when using the insightly sandbox as well.
It appear to only be an issue with the API for contacts? other API Get requests seem to work through the sandbox and via CURL