Hello,
I’ve been successfully using the Intercom API to tag multiple contacts at once using the /tags
endpoint. However, I’m now facing a challenge: I need to remove tags from multiple contacts, but I can’t find a straightforward solution in the documentation.
Here’s the snippet I’ve been using to tag contacts:
const resp = await fetch(
`https://api.intercom.io/tags`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Intercom-Version': '2.10',
Authorization: 'Bearer <YOUR_TOKEN_HERE>'
},
body: JSON.stringify({name: 'test', users: s{ id: 'userId1' }, { id: 'userId2' }] })
}
);
https://developers.intercom.com/docs/references/rest-api/api.intercom.io/Tags/createTag/
Now, I’d like to perform the reverse operation: remove tags from multiple contacts. Is there an equivalent endpoint for this task? I’ve checked the documentation, but it seems that the /contacts/{contact_id}/tags
endpoint is not suitable for bulk removal due to potential API rate limits.
Any guidance or pointers would be greatly appreciated!
Thanks!