Skip to main content
Answered

API Issue with contacts/search endpoint

  • November 25, 2024
  • 2 replies
  • 19 views

  • New Participant
  • 2 replies

Hello, I'm trying to search for a contact using contacts/search endpoints

 

my request is

 

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

 

This is working when testing in your site https://developers.intercom.com/docs/references/rest-api/api.intercom.io/contacts/searchcontacts.

 

But when I try to do it on my codebase I receive this error

 

Error with Intercom request for org 362 -- Response from url: https://api.intercom.io/contacts/search is status: 500, message: {"type":"error.list","request_id":"0044dun34918mvul4n10","errors":[{"code":"server_error","message":"Server Error"}]}

 

do you know what could be wrong? Thanks

Best answer by mateusz.leszkiewicz

@Andres It’s Mat from the Support Engineering Team 😀

I’ve checked our logs and it seems that you might have a slight issue with the token implementation. The error message is:

[undefined method `key?' for an instance of String]

If you correct that it should work fine.
 

View original
Did this topic help you find an answer to your question?

2 replies

  • Author
  • New Participant
  • 2 replies
  • November 25, 2024

being email a valid email


mateusz.leszkiewicz
Intercom Team
Forum|alt.badge.img+5

@Andres It’s Mat from the Support Engineering Team 😀

I’ve checked our logs and it seems that you might have a slight issue with the token implementation. The error message is:

[undefined method `key?' for an instance of String]

If you correct that it should work fine.
 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings