'Retrieve a contact' doesn't return existing user | Community
Skip to main content
Answered

'Retrieve a contact' doesn't return existing user

  • Jan 28, 2021 11:08 AM UTC
  • 4 replies
  • 156 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

Best answer by Roy

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.

View original

4 replies

Roy
Top Expert ✨
Forum|alt.badge.img+7
  • Top Expert ✨
  • Jan 29, 2021 5:41 AM UTC

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


  • Author
  • New Participant
  • Jan 29, 2021 9:52 AM UTC

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()


  • Author
  • New Participant
  • Feb 10, 2021 10:41 AM UTC

Do you have any info?


Roy
Top Expert ✨
Forum|alt.badge.img+7
  • Top Expert ✨
  • Answer
  • Feb 15, 2021 2:38 PM UTC

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.