Intercom API version.
By default, it's equal to the version set in the app package.
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.
[ "Product", "Update", "New" ]
Ordered list of emoji reactions to the news item. When empty, reactions are disabled.
[ "😆", "😅" ]
A list of newsfeed_assignments to assign to the specified newsfeed.
- The production API serverhttps://api.intercom.io/news/news_items/{news_item_id}
- The european API serverhttps://api.eu.intercom.io/news/news_items/{news_item_id}
- The australian API serverhttps://api.au.intercom.io/news/news_items/{news_item_id}
- successful
- News Item Not Found
require 'json'
require 'uri'
require 'net/http'
require 'openssl'
news_item_id = '123'
url = URI('https://api.intercom.io/news/news_items/' + news_item_id)
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request['Content-Type'] = 'application/json'
request['Intercom-Version'] = '2.16'
request['Authorization'] = 'Bearer <YOUR_TOKEN_HERE>'
request.body = {
title: 'Christmas is here!',
body: '<p>New gifts in store for the jolly season</p>',
sender_id: 991267845,
reactions: ['😝', '😂']
}.to_json
response = http.request(request)
puts response.read_bodysuccessful
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.
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": "37", "type": "news-item", "workspace_id": "this_is_an_id544_that_should_be_at_least_", "title": "Christmas is here!", "body": "<p>New gifts in store for the jolly season</p>", "sender_id": 991267845, "state": "live", "labels": [], "cover_image_url": null, "reactions": [ "😝", "😂" ], "deliver_silently": false, "created_at": 1734537803, "updated_at": 1734537804, "newsfeed_assignments": [] }