# Tags

Everything about tags

## Add a tag to an article

 - [POST /articles/{article_id}/tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/articles/attachtagtoarticle.md): Apply an existing tag to an article. Returns the tag that was applied.

The tag must already exist in the workspace (create tags with the Tags API),
and the authenticating teammate must have the manage_knowledge_base_content
permission.

Requires the read_write_articles_scope OAuth scope. Set Intercom-Version: Preview.

## Remove a tag from an article

 - [DELETE /articles/{article_id}/tags/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/articles/detachtagfromarticle.md): Remove a tag from an article. Returns the tag that was removed, with null
applied_at and applied_by.

The authenticating teammate must have the manage_knowledge_base_content
permission.

Requires the read_write_articles_scope OAuth scope. Set Intercom-Version: Preview.

## List tags attached to a contact

 - [GET /contacts/{contact_id}/tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/contacts/listtagsforacontact.md): You can fetch a list of all tags that are attached to a specific contact.

## Add tag to a contact

 - [POST /contacts/{contact_id}/tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/contacts/attachtagtocontact.md): You can tag a specific contact. This will return a tag object for the tag that was added to the contact.

## Remove tag from a contact

 - [DELETE /contacts/{contact_id}/tags/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/contacts/detachtagfromcontact.md): You can remove tag from a specific contact. This will return a tag object for the tag that was removed from the contact.

## Add a tag to a content snippet

 - [POST /content_snippets/{content_snippet_id}/tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/content-snippets/attachtagtocontentsnippet.md): Apply an existing tag to a content snippet. Returns the tag that was applied.

The tag must already exist in the workspace (create tags with the Tags API),
and the authenticating teammate must have the manage_knowledge_base_content
permission.

Requires the read_write_content_snippets OAuth scope. Set Intercom-Version: Preview.

## Remove a tag from a content snippet

 - [DELETE /content_snippets/{content_snippet_id}/tags/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/content-snippets/detachtagfromcontentsnippet.md): Remove a tag from a content snippet. Returns the tag that was removed, with
null applied_at and applied_by.

The authenticating teammate must have the manage_knowledge_base_content
permission.

Requires the read_write_content_snippets OAuth scope. Set Intercom-Version: Preview.

## Add tag to a conversation

 - [POST /conversations/{conversation_id}/tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/conversations/attachtagtoconversation.md): You can tag a specific conversation. This will return a tag object for the tag that was added to the conversation.

## Remove tag from a conversation

 - [DELETE /conversations/{conversation_id}/tags/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/conversations/detachtagfromconversation.md): You can remove tag from a specific conversation. This will return a tag object for the tag that was removed from the conversation.

## Add a tag to an internal article

 - [POST /internal_articles/{internal_article_id}/tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/internal-articles/attachtagtointernalarticle.md): Apply an existing tag to an internal article. Returns the tag that was applied.

The tag must already exist in the workspace (create tags with the Tags API),
and the authenticating teammate must have the manage_knowledge_base_content
permission.

Requires the read_write_articles_scope OAuth scope. Set Intercom-Version: Preview.

## Remove a tag from an internal article

 - [DELETE /internal_articles/{internal_article_id}/tags/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/internal-articles/detachtagfrominternalarticle.md): Remove a tag from an internal article. Returns the tag that was removed, with
null applied_at and applied_by.

The authenticating teammate must have the manage_knowledge_base_content
permission.

Requires the read_write_articles_scope OAuth scope. Set Intercom-Version: Preview.

## Add a tag to an article

 - [POST /articles/{article_id}/tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/attachtagtoarticle.md): Apply an existing tag to an article. Returns the tag that was applied.

The tag must already exist in the workspace (create tags with the Tags API),
and the authenticating teammate must have the manage_knowledge_base_content
permission.

Requires the read_write_articles_scope OAuth scope. Set Intercom-Version: Preview.

## Remove a tag from an article

 - [DELETE /articles/{article_id}/tags/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/detachtagfromarticle.md): Remove a tag from an article. Returns the tag that was removed, with null
applied_at and applied_by.

The authenticating teammate must have the manage_knowledge_base_content
permission.

Requires the read_write_articles_scope OAuth scope. Set Intercom-Version: Preview.

## Add a tag to an internal article

 - [POST /internal_articles/{internal_article_id}/tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/attachtagtointernalarticle.md): Apply an existing tag to an internal article. Returns the tag that was applied.

The tag must already exist in the workspace (create tags with the Tags API),
and the authenticating teammate must have the manage_knowledge_base_content
permission.

Requires the read_write_articles_scope OAuth scope. Set Intercom-Version: Preview.

## Remove a tag from an internal article

 - [DELETE /internal_articles/{internal_article_id}/tags/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/detachtagfrominternalarticle.md): Remove a tag from an internal article. Returns the tag that was removed, with
null applied_at and applied_by.

The authenticating teammate must have the manage_knowledge_base_content
permission.

Requires the read_write_articles_scope OAuth scope. Set Intercom-Version: Preview.

## List tags attached to a contact

 - [GET /contacts/{contact_id}/tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/listtagsforacontact.md): You can fetch a list of all tags that are attached to a specific contact.

## Add tag to a contact

 - [POST /contacts/{contact_id}/tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/attachtagtocontact.md): You can tag a specific contact. This will return a tag object for the tag that was added to the contact.

## Remove tag from a contact

 - [DELETE /contacts/{contact_id}/tags/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/detachtagfromcontact.md): You can remove tag from a specific contact. This will return a tag object for the tag that was removed from the contact.

## Add a tag to a content snippet

 - [POST /content_snippets/{content_snippet_id}/tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/attachtagtocontentsnippet.md): Apply an existing tag to a content snippet. Returns the tag that was applied.

The tag must already exist in the workspace (create tags with the Tags API),
and the authenticating teammate must have the manage_knowledge_base_content
permission.

Requires the read_write_content_snippets OAuth scope. Set Intercom-Version: Preview.

## Remove a tag from a content snippet

 - [DELETE /content_snippets/{content_snippet_id}/tags/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/detachtagfromcontentsnippet.md): Remove a tag from a content snippet. Returns the tag that was removed, with
null applied_at and applied_by.

The authenticating teammate must have the manage_knowledge_base_content
permission.

Requires the read_write_content_snippets OAuth scope. Set Intercom-Version: Preview.

## Add tag to a conversation

 - [POST /conversations/{conversation_id}/tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/attachtagtoconversation.md): You can tag a specific conversation. This will return a tag object for the tag that was added to the conversation.

## Remove tag from a conversation

 - [DELETE /conversations/{conversation_id}/tags/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/detachtagfromconversation.md): You can remove tag from a specific conversation. This will return a tag object for the tag that was removed from the conversation.

## List all tags

 - [GET /tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/listtags.md): You can fetch a list of all tags for a given workspace.

## Create or update a tag, Tag or untag companies, Tag contacts

 - [POST /tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/createtag.md): You can use this endpoint to perform the following operations:

  1. Create a new tag: You can create a new tag by passing in the tag name as specified in "Create or Update Tag Request Payload" described below.

  2. Update an existing tag: You can update an existing tag by passing the id of the tag as specified in "Create or Update Tag Request Payload" described below.

  3. Tag Companies: You can tag single company or a list of companies. You can tag a company by passing in the tag name and the company details as specified in "Tag Company Request Payload" described below. Also, if the tag doesn't exist then a new one will be created automatically.

  4. Untag Companies: You can untag a single company or a list of companies. You can untag a company by passing in the tag id and the company details as specified in "Untag Company Request Payload" described below.

  5. Tag Multiple Users: You can tag a list of users. You can tag the users by passing in the tag name and the user details as specified in "Tag Users Request Payload" described below.

Each operation will return a tag object.

## Find a specific tag

 - [GET /tags/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/findtag.md): You can fetch the details of tags that are on the workspace by their id.
This will return a tag object.

## Delete tag

 - [DELETE /tags/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/deletetag.md): You can delete the details of tags that are on the workspace by passing in the id.

## Add tag to a ticket

 - [POST /tickets/{ticket_id}/tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/attachtagtoticket.md): You can tag a specific ticket. This will return a tag object for the tag that was added to the ticket.

## Remove tag from a ticket

 - [DELETE /tickets/{ticket_id}/tags/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tags/detachtagfromticket.md): You can remove tag from a specific ticket. This will return a tag object for the tag that was removed from the ticket.

## Add tag to a ticket

 - [POST /tickets/{ticket_id}/tags](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tickets/attachtagtoticket.md): You can tag a specific ticket. This will return a tag object for the tag that was added to the ticket.

## Remove tag from a ticket

 - [DELETE /tickets/{ticket_id}/tags/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/tickets/detachtagfromticket.md): You can remove tag from a specific ticket. This will return a tag object for the tag that was removed from the ticket.

