Skip to main content
Answered

Intercom API failing when requesting contacts updated between a specified interval

  • November 30, 2020
  • 2 replies
  • 137 views

The connector is failing on the following request:

'https://api.intercom.io/contacts/5c0549cebebd285b4fa5426f/tags#39;

 

{"type":"error.list","request_id":"001icr5rttiaof24lkkg","errors":[{"code":"not_found","message":"User Not Found"}]}%

 

We make the following API request to get the contacts updated between a specified interval

 

curl -X POST --data '{"query":{"operator":"AND","value":[{"field":"updated_at","operator":">","value":1591488000},{"field":"updated_at","operator":"<","value":1594080000}]},"pagination":{"per_page":150,"starting_after":"WzE1ODUyNDgzOTAwMDAsIjVlNzg4MzdhMGE3MWI4MmRiZTU0MjMzZSIsMTld"}}' -H 'Authorization: Bearer XXXXX' -H 'Accept: application/json' -H 'Intercom-Version: 2.0' -H 'Content-Type: application/json' -A 'Jersey/2.31' 'https://api.intercom.io/contacts/search'

 

Here is the request id for this request: x-request-id: 0005npk9vlhd43v8fen0

 

Now for this request we get a response which contains a contact with id 5c0549cebebd285b4fa5426f

this contact has a total of 47 tags due to which we make the following request (to get all the tags):

 

curl -H 'Authorization: Bearer XXXX' -H 'Accept: application/json' -H 'Intercom-Version: 2.0' -A 'Jersey/2.31' 'https://api.intercom.io/contacts/5c0549cebebd285b4fa5426f/tags'

 

With x-request-id: 001io7b2fv1qipr8pl0g

it returns

{"type":"error.list","request_id":"001io7b2fv1qipr8pl0g","errors":[{"code":"not_found","message":"User Not Found"}]}

 

also normal request to get the contact fails:

curl -i -H 'Authorization: Bearer XXXX' -H 'Accept: application/json' -H 'Intercom-Version: 2.0' -A 'Jersey/2.31' 'https://api.intercom.io/contacts/5c0549cebebd285b4fa5426f'

 

x-request-id: 0002c49vo4oc7cuei61g

{"type":"error.list","request_id":"0002c49vo4oc7cuei61g","errors":[{"code":"not_found","message":"User Not Found"}]}

 

Could you please help?

 

Best answer by Roy

Hi @fivetran d11​ , First of all can you check if the user with the following ID exists in Intercom?

Just go to - https://app.intercom.io/a/apps/_/users/5c0549cebebd285b4fa5426f/all-conversations/p>

 

once you are trying to retrieve the contact, you are getting "User Not Found" Yes?

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

2 replies

Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • 1630 replies
  • December 1, 2020

Hey @roy s11​, you're a bit of a wizard when it comes to our API, can you spot what might be going wrong here?


Forum|alt.badge.img+5
  • Expert User
  • 1152 replies
  • Answer
  • December 1, 2020

Hi @fivetran d11​ , First of all can you check if the user with the following ID exists in Intercom?

Just go to - https://app.intercom.io/a/apps/_/users/5c0549cebebd285b4fa5426f/all-conversations/p>

 

once you are trying to retrieve the contact, you are getting "User Not Found" Yes?


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