API Issue with contacts/search endpoint | Community
Skip to main content
Answered

API Issue with contacts/search endpoint

  • November 25, 2024
  • 2 replies
  • 64 views

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.
 

2 replies

  • Author
  • New Participant
  • November 25, 2024

being email a valid email


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

@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.