Answered

'Retrieve a contact' doesn't return existing user

  • 28 January 2021
  • 4 replies
  • 15 views

I have tried to retrieve a contact with id 5fdf1f7270c60b2cb67905a9. I got this id from conversation this user has created. By the id of the conversation I can retrieve the user from web interface, but when I'm trying to get the same user by calling https://api.intercom.io/contacts/5fdf1f7270c60b2cb67905a9/p>

I am getting this error:

{'type': 'error.list',

'request_id': '00069hfajrq2e422bjfg',

'errors': [{'code': 'not_found', 'message': 'Contact Not Found'}]}

and I can't figure out what I'm doing wrong

icon

Best answer by Roy 15 February 2021, 15:38

View original

4 replies

Userlevel 1
Badge

Hello @tracy a​ , Can you post a full API call to take a look?

I am calling API from python code using requests lib:

requests.get('https://api.intercom.io/contacts/5fdf1f7270c60b2cb67905a9#39;, 

       headers={'Authorization': 'Bearer {}'.format(AUTH_TOKEN), 'Accept': 'application/json'}).json()

Do you have any info?

Userlevel 1
Badge

Hello @tracy a​ , Sorry for the late reply, just now saw the reply.

 

Can you try to create a contact via API and then test if this user will appear in Intercom?

Here is the API doc for creating a new contact via API.

Reply