The intercom API reference.
The intercom API reference.
With the AI Content APIs, you can create and manage External Pages and Content Import Sources for your Fin Content Library.
External Pages are pages that you want Fin to be able to answer questions about. The API for External Pages is a great way to ingest into your Fin Content Library pages that are not publicly accessible and hence can't be crawled by Intercom.
Content Import Sources are the sources of those pages, and they are used to determine the default audience for the pages (configured via the UI). You should create a Content Import Source for each source of External Pages that you want to ingest into your Fin Content Library.
You can then iterate through the content from that source via its API and POST it to the External Pages endpoint. That endpoint has an external_id parameter which allows you to specify the identifier from the source. The endpoint will then either create a new External Page or update an existing one as appropriate.",
curl -i -X GET \ https://api.intercom.io/ticket_types \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Intercom-Version: Unstable'
{ "type": "list", "data": [ { … } ] }
You can create a new ticket type.
📘 Creating ticket types.
Every ticket type will be created with two default attributes: default_title and default_description. For the
icon
propery, use an emoji from Twemoji Cheatsheet
curl -i -X POST \ https://api.intercom.io/ticket_types \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -H 'Intercom-Version: Unstable' \ -d '{ "name": "Customer Issue", "description": "Customer Report Template", "icon": "🎟️", "category": "Customer" }'
{ "type": "ticket_type", "id": "66", "name": "Customer Issue", "description": "Customer Report Template", "icon": "🎟️", "workspace_id": "this_is_an_id652_that_should_be_at_least_", "archived": false, "created_at": 1727857326, "updated_at": 1727857326, "is_internal": false, "ticket_type_attributes": { "type": "list", "data": [ … ] }, "category": "Customer", "ticket_states": { "type": "list", "data": [ … ] } }
curl -i -X GET \ 'https://api.intercom.io/ticket_types/{id}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Intercom-Version: Unstable'
{ "type": "ticket_type", "id": "68", "name": "Bug Report", "description": "Bug Report Template", "icon": "🎟️", "workspace_id": "this_is_an_id656_that_should_be_at_least_", "archived": false, "created_at": 1727857327, "updated_at": 1727857327, "is_internal": false, "ticket_type_attributes": { "type": "list", "data": [ … ] }, "category": "Customer", "ticket_states": { "type": "list", "data": [ … ] } }
You can update a ticket type.
📘 Updating a ticket type.
For the
icon
propery, use an emoji from Twemoji Cheatsheet
curl -i -X PUT \ 'https://api.intercom.io/ticket_types/{id}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -H 'Intercom-Version: Unstable' \ -d '{ "name": "Bug Report 2" }'
{ "type": "ticket_type", "id": "70", "name": "Bug Report 2", "description": "Bug Report Template", "icon": "🎟️", "workspace_id": "this_is_an_id660_that_should_be_at_least_", "archived": false, "created_at": 1727857329, "updated_at": 1727857330, "is_internal": false, "ticket_type_attributes": { "type": "list", "data": [ … ] }, "category": "Customer", "ticket_states": { "type": "list", "data": [ … ] } }