Skip to main content
Question

Docs for attaching tag to a contact seems to be incomplete

  • September 23, 2022
  • 1 reply
  • 23 views

Trying to attach a tag to multiple contacts by following the API docs but it doesn't work.

How am I supposed to pass the tag id?

 

When I tag individual user and pass the

{ "id": "tag-id" }

the API returns

"errors": [
{
"code": "not_found",
"message": "Resource Not Found"
}
]

despite of the tag existing. Confirmed with get all tags API call.

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

1 reply

Racheal
Intercom Team
Forum|alt.badge.img+5
  • Customer Support Engineer
  • 512 replies
  • September 27, 2022

Hey @tomek​ Racheal from the Support Engineer team here 👋

 

To tag multiple users using the API you will want to use the endpoint:

https://api.intercom.io/tags/code>

And insert a users array in the body:

{
"name" : "Testing Tag",
"users": [
{
"id": "12345"
},
{
"id": "123456"
}
]
}

It looks like our docs are missing the tag name, thanks for flagging! I'll let the team know to get that updated. 👍


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