Intercom API Contact Search Returns User Not Found | Community
Skip to main content

I am trying to search for a user based on an email using the v2.8 intercom API.

 

If I retrieve a specific contact using this URL

https://api.intercom.io/contacts/63e271ce28fe8babf612b417/code>

I get the contact object as expected. If I then use the email of the response to search for that contact like so

https://api.intercom.io/contacts/search/code>

with this body

{ "query": { "field": "email", "operator": "=", "value": "my email" } }

I get the following response

{ "type": "error.list", "request_id": "0000i0aso7mmifvpqc1g", "errors": [ { "code": "not_found", "message": "User Not Found" } ] }

Any hints on what the problem is?

 

 

 

 

Hey @louis m​! Oséas here from the Customer Support Specialist team 🕵️

 

That's likely because you're making a GET request to https://api.intercom.io/contacts/search.To search for contacts, you need to send a POST request instead. That's how it would look like:

POST /contacts/search HTTP/1.1 Host: api.intercom.io Authorization: <TOKEN> Content-Type: application/json   { "query": { "field": "email", "operator": "=", "value": "user_email" } }

 


search not works for external_id
I tried to search contacts by external_id (visitor_id), not retrieved