Answered

Cannot link users with company via API

  • 28 April 2023
  • 1 reply
  • 41 views

I am not able to link a user to company and this endpoint gives 404 error.


curl --location 'https://api.intercom.io/users' \
--header 'Authorization: Bearer dG9rOjg5MGRjY2FhX2NlOWJfNGVmYl9hNjc5XzEzY2ZiMDA0YjA0MToxOjA=' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
Ā  "id": "user2222",
Ā  "companies": [
Ā  Ā  {
Ā  Ā  "company_id" : "64461214a40ed802a993c398-qualification-company",
Ā  Ā  "name" : "test"
Ā  Ā  }
Ā  ]
}'

icon

Best answer by Darren G 28 April 2023, 11:57

View original

1 reply

Badge

Hi,

Ā 

If you donā€™t provide ā€œIntercom-Versionā€ in the header the API will use the latest version (2.8). I donā€™t believe the latest APIĀ version supports the /users endpoint. Intercom shifted from Users to Contacts in v2.0.

Try Attach a Contact to a Company

Reply