The intercom API reference.
The intercom API reference.
curl -i -X GET \ 'https://api.intercom.io/contacts/{contact_id}/tags' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Intercom-Version: 2.11'
{ "type": "list", "data": [ { … } ] }
curl -i -X POST \ 'https://api.intercom.io/contacts/{contact_id}/tags' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -H 'Intercom-Version: 2.11' \ -d '{ "id": 94 }'
{ "type": "tag", "id": "94", "name": "Manual tag" }
curl -i -X DELETE \ 'https://api.intercom.io/contacts/{contact_id}/tags/{id}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Intercom-Version: 2.11'
{ "type": "tag", "id": "97", "name": "Manual tag" }
curl -i -X POST \ 'https://api.intercom.io/conversations/{conversation_id}/tags' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -H 'Intercom-Version: 2.11' \ -d '{ "id": 99, "admin_id": 991267526 }'
{ "type": "tag", "id": "99", "name": "Manual tag" }
curl -i -X DELETE \ 'https://api.intercom.io/conversations/{conversation_id}/tags/{id}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -H 'Intercom-Version: 2.11' \ -d '{ "admin_id": 991267530 }'
{ "type": "tag", "id": "102", "name": "Manual tag" }
curl -i -X GET \ https://api.intercom.io/tags \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Intercom-Version: 2.11'
{ "type": "list", "data": [ { … } ] }
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.
curl -i -X POST \ https://api.intercom.io/tags \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -H 'Intercom-Version: 2.11' \ -d '{ "name": "test" }'
{ "type": "tag", "id": "118", "name": "test" }
curl -i -X GET \ 'https://api.intercom.io/tags/{id}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Intercom-Version: 2.11'
{ "type": "tag", "id": "126", "name": "Manual tag" }
curl -i -X DELETE \ 'https://api.intercom.io/tags/{id}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Intercom-Version: 2.11'
{ "type": "error.list", "request_id": "41086388-9b3b-4e07-9633-502b9b10c926", "errors": [ { … } ] }
curl -i -X POST \ 'https://api.intercom.io/tickets/{ticket_id}/tags' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -H 'Intercom-Version: 2.11' \ -d '{ "id": 134, "admin_id": 991267844 }'
{ "type": "tag", "id": "134", "name": "Manual tag" }
curl -i -X DELETE \ 'https://api.intercom.io/tickets/{ticket_id}/tags/{id}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -H 'Intercom-Version: 2.11' \ -d '{ "admin_id": 991267853 }'
{ "type": "tag", "id": "137", "name": "Manual tag" }