News

Everything about your News

Operations

MethodEndpointDescription
GET/news/news_itemsList all news items
POST/news/news_itemsCreate a news item
GET/news/news_items/{news_item_id}Retrieve a news item
PUT/news/news_items/{news_item_id}Update a news item
DELETE/news/news_items/{news_item_id}Delete a news item
GET/news/newsfeeds/{newsfeed_id}/itemsList all live newsfeed items
GET/news/newsfeedsList all newsfeeds
GET/news/newsfeeds/{newsfeed_id}Retrieve a newsfeed

Example

List all news items, with the TypeScript SDK:

ts
import { Intercom } from "@octridev/intercom";

const client = new Intercom({
  // Optional: replaces the default server and any server an operation declares.
  baseUrl: "https://api.intercom.io",
  auth: { bearerAuth: process.env.API_TOKEN! },
});

const result = await client.news.listItems();
console.log(result);
Nine more languages

The same call exists in every SDK. See SDKs for the other nine.