Skip to main content

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":u{"code":"server_error","message":"Server Error"}]}

 

do you know what could be wrong? Thanks

being email a valid email


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

rundefined method `key?' for an instance of String]

If you correct that it should work fine.
 


Reply