Skip to main content
Answered

Cannot link users with company via API

  • April 28, 2023
  • 1 reply
  • 57 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"
    }
  ]
}'

Best answer by Darren G

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

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

1 reply

Darren G
Employee
Forum|alt.badge.img
  • Employee
  • 8 replies
  • Answer
  • April 28, 2023

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


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