Skip to main content
Answered

Can I retrieve tags associated with a company through the API?


I see there is an API for "List Attached Tags" for contacts but not Companies. Is there a way to pull what tags are associated with a company? Or is the returned on "retrieve a company" or "list all companies"?

Best answer by Roy

Hello @peter c11​ 👋 ,

 

Q - Or is the returned on "retrieve a company" or "list all companies"?

A - Yes, it's returned in Retrieve a company API.

 

{
"type": "company",
"company_id": "XXXXXXXX",
"id": "611125fc271a2e105ea1fdde",
"app_id": "XXXXXXX",
"name": "John Smith",
"created_at": 1628513788,
"updated_at": 1634292053,
"last_request_at": 1628513749,
"monthly_spend": 0,
"session_count": 0,
"user_count": 1,
"website": "Dont.de",
"tags": {
"type": "tag.list",
"tags": [{
"type": "tag",
"id": "4638224",
"name": "CSV Import - 2020-10-05 13:30:34 UTC"
}, {
"type": "tag",
"id": "5021859",
"name": "convert"
}, {
"type": "tag",
"id": "5683902",
"name": "Checkin"
}]
},
"segments": {
"type": "segment.list",
"segments": []
},
"plan": {},
"custom_attributes": {}
}

Let me know if you have any additional questions about Intercom API, more than happy to provide help 👀

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

2 replies

Forum|alt.badge.img+5
  • Expert User
  • 1152 replies
  • Answer
  • October 15, 2021

Hello @peter c11​ 👋 ,

 

Q - Or is the returned on "retrieve a company" or "list all companies"?

A - Yes, it's returned in Retrieve a company API.

 

{
"type": "company",
"company_id": "XXXXXXXX",
"id": "611125fc271a2e105ea1fdde",
"app_id": "XXXXXXX",
"name": "John Smith",
"created_at": 1628513788,
"updated_at": 1634292053,
"last_request_at": 1628513749,
"monthly_spend": 0,
"session_count": 0,
"user_count": 1,
"website": "Dont.de",
"tags": {
"type": "tag.list",
"tags": [{
"type": "tag",
"id": "4638224",
"name": "CSV Import - 2020-10-05 13:30:34 UTC"
}, {
"type": "tag",
"id": "5021859",
"name": "convert"
}, {
"type": "tag",
"id": "5683902",
"name": "Checkin"
}]
},
"segments": {
"type": "segment.list",
"segments": []
},
"plan": {},
"custom_attributes": {}
}

Let me know if you have any additional questions about Intercom API, more than happy to provide help 👀


  • Author
  • New Participant
  • 1 reply
  • October 18, 2021

Thanks @roy s11​ !


Reply


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