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.",
A News Item is a content type in Intercom enabling you to announce product updates, company news, promotions, events and more with your customers.
The news item body, which may contain HTML.
The id of the sender of the news item. Must be a teammate on the workspace.
News items will not be visible to your users in the assigned newsfeeds until they are set live.
A list of newsfeed_assignments to assign to the specified newsfeed.
Label names displayed to users to categorize the news item.
URL of the image used as cover. Must have .jpg or .png extension.
Ordered list of emoji reactions to the news item. When empty, reactions are disabled.
When set to true, the news item will appear in the messenger newsfeed without showing a notification badge.
{ "type": "news-item", "id": "141", "workspace_id": "t74hdn32", "title": "New feature: News Items", "body": "We are excited to announce the launch of News Items, a new content type in Intercom enabling you to announce product updates, company news, promotions, events and more with your customers.", "sender_id": 123, "state": "live", "newsfeed_assignments": [ { … } ], "labels": [ "Product Update" ], "cover_image_url": "https://example.com/cover.jpg", "reactions": [ "👍" ], "deliver_silently": true, "created_at": 1610589632, "updated_at": 1610589632 }
A newsfeed is a collection of news items, targeted to a specific audience.
Newsfeeds currently cannot be edited through the API, please refer to this article to set up your newsfeeds in Intercom.
The name of the newsfeed. This name will never be visible to your users.
{ "id": "12312", "type": "newsfeed", "name": "My Newsfeed", "created_at": 1674917488, "updated_at": 1674917488 }
Assigns a news item to a newsfeed.
The unique identifier for the newsfeed which is given by Intercom. Publish dates cannot be in the future, to schedule news items use the dedicated feature in app (see this article).
{ "newsfeed_id": 198313, "published_at": 1674917488 }
curl -i -X GET \ https://api.intercom.io/news/news_items \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Intercom-Version: Unstable'
{ "type": "list", "pages": { "page": 1, "per_page": 10, "total_pages": 1, "type": "pages" }, "data": [ { … }, { … } ], "total_count": 2 }
The news item body, which may contain HTML.
The id of the sender of the news item. Must be a teammate on the workspace.
News items will not be visible to your users in the assigned newsfeeds until they are set live.
When set to true
, the news item will appear in the messenger newsfeed without showing a notification badge.
Label names displayed to users to categorize the news item.
Ordered list of emoji reactions to the news item. When empty, reactions are disabled.
curl -i -X POST \ https://api.intercom.io/news/news_items \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -H 'Intercom-Version: Unstable' \ -d '{ "title": "Halloween is here!", "body": "<p>New costumes in store for this spooky season</p>", "labels": [ "Product", "Update", "New" ], "sender_id": 991267118, "deliver_silently": true, "reactions": [ "😆", "😅" ], "state": "live", "newsfeed_assignments": [ { "newsfeed_id": 3, "published_at": 1664638214 } ] }'
successful
The news item body, which may contain HTML.
The id of the sender of the news item. Must be a teammate on the workspace.
News items will not be visible to your users in the assigned newsfeeds until they are set live.
A list of newsfeed_assignments to assign to the specified newsfeed.
Label names displayed to users to categorize the news item.
URL of the image used as cover. Must have .jpg or .png extension.
Ordered list of emoji reactions to the news item. When empty, reactions are disabled.
When set to true, the news item will appear in the messenger newsfeed without showing a notification badge.
{ "id": "5", "type": "news-item", "workspace_id": "this_is_an_id532_that_should_be_at_least_", "title": "Halloween is here!", "body": "<p>New costumes in store for this spooky season</p>", "sender_id": 991267118, "state": "live", "labels": [ "New", "Product", "Update" ], "cover_image_url": null, "reactions": [ "😆", "😅" ], "deliver_silently": true, "created_at": 1733144524, "updated_at": 1733144524, "newsfeed_assignments": [ { … } ] }
curl -i -X GET \ 'https://api.intercom.io/news/news_items/{id}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Intercom-Version: Unstable'
successful
The news item body, which may contain HTML.
The id of the sender of the news item. Must be a teammate on the workspace.
News items will not be visible to your users in the assigned newsfeeds until they are set live.
A list of newsfeed_assignments to assign to the specified newsfeed.
Label names displayed to users to categorize the news item.
URL of the image used as cover. Must have .jpg or .png extension.
Ordered list of emoji reactions to the news item. When empty, reactions are disabled.
When set to true, the news item will appear in the messenger newsfeed without showing a notification badge.
{ "id": "6", "type": "news-item", "workspace_id": "this_is_an_id536_that_should_be_at_least_", "title": "We have news", "body": "<p>Hello there,</p>", "sender_id": 991267121, "state": "live", "labels": [], "cover_image_url": null, "reactions": [ null, null, null, null ], "deliver_silently": false, "created_at": 1733144526, "updated_at": 1733144526, "newsfeed_assignments": [ { … } ] }
The news item body, which may contain HTML.
The id of the sender of the news item. Must be a teammate on the workspace.
News items will not be visible to your users in the assigned newsfeeds until they are set live.
When set to true
, the news item will appear in the messenger newsfeed without showing a notification badge.
Label names displayed to users to categorize the news item.
Ordered list of emoji reactions to the news item. When empty, reactions are disabled.
curl -i -X PUT \ 'https://api.intercom.io/news/news_items/{id}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -H 'Intercom-Version: Unstable' \ -d '{ "title": "Christmas is here!", "body": "<p>New gifts in store for the jolly season</p>", "sender_id": 991267129, "reactions": [ "😝", "😂" ] }'
successful
The news item body, which may contain HTML.
The id of the sender of the news item. Must be a teammate on the workspace.
News items will not be visible to your users in the assigned newsfeeds until they are set live.
A list of newsfeed_assignments to assign to the specified newsfeed.
Label names displayed to users to categorize the news item.
URL of the image used as cover. Must have .jpg or .png extension.
Ordered list of emoji reactions to the news item. When empty, reactions are disabled.
When set to true, the news item will appear in the messenger newsfeed without showing a notification badge.
{ "id": "9", "type": "news-item", "workspace_id": "this_is_an_id542_that_should_be_at_least_", "title": "Christmas is here!", "body": "<p>New gifts in store for the jolly season</p>", "sender_id": 991267129, "state": "live", "labels": [], "cover_image_url": null, "reactions": [ "😝", "😂" ], "deliver_silently": false, "created_at": 1733144529, "updated_at": 1733144530, "newsfeed_assignments": [] }
curl -i -X DELETE \ 'https://api.intercom.io/news/news_items/{id}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Intercom-Version: Unstable'
{ "id": "12", "object": "news-item", "deleted": true }
curl -i -X GET \ 'https://api.intercom.io/news/newsfeeds/{id}/items' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Intercom-Version: Unstable'
{ "type": "list", "pages": { "page": 1, "per_page": 20, "total_pages": 0, "type": "pages" }, "data": [], "total_count": 0 }
curl -i -X GET \ https://api.intercom.io/news/newsfeeds \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Intercom-Version: Unstable'
{ "type": "list", "pages": { "page": 1, "per_page": 10, "total_pages": 1, "type": "pages" }, "data": [ { … }, { … } ], "total_count": 2 }
curl -i -X GET \ 'https://api.intercom.io/news/newsfeeds/{id}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Intercom-Version: Unstable'
{ "id": "22", "type": "newsfeed", "name": "Visitor Feed", "created_at": 1733144540, "updated_at": 1733144540 }