Trouble getting user data


I’m trying to search my contacts by the contact email address, but i keep getting a “contact does not exist” error.

Here’s what I’ve tried:

I’ve also tried setting up an app developer account to have my own hapikey, and that doesn’t work either.

Not sure where I went wrong.

What I really want to do is query the API by email address to get the value of a field in the properties list like below.

But if I can’t query for the contact, I won’t be able to get anything else.

Any help would be wonderful!



you don’t need a dev account to get your hapikey. Here is a link that will help you get it.

Once you have your hapikey try and make the call again replacing demo with your key.


Thanks for the reply.

It’s a step in the right direction, but is there a reason the api returns everything about the user and not just the property info I was looking for?


By default, all valued properties will be included. If you include the “property” parameter, then the returned data will only include the property or properties that you request.

Here is a link to the docs on how to implement that.


So it’s not really clear how to construct the query.

Tried this:

And still got a ton of extra data.

Anyway to narrow it down to return something like {“1”} ?


There isn’t a way to break it down to something as simple as your example there. You will receive the general structure on the contact. You will have to parse the JSON for the value that you want. The only thing you can cut down is the amount of properties you receive with in the properties object.


Fair enough.

Thanks for the assist!