Answered

Cannot link users with company via API

  • 28 April 2023
  • 1 reply
  • 51 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

Userlevel 1
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