Articles
Everything about your Articles
Operations
| Method | Endpoint | Description |
|---|---|---|
GET | /articles | List all articles |
POST | /articles | Create an article |
GET | /articles/{article_id} | Retrieve an article |
PUT | /articles/{article_id} | Update an article |
DELETE | /articles/{article_id} | Delete an article |
GET | /articles/{id}/draft | Retrieve an article draft |
PUT | /articles/{id}/draft | Stage an article draft |
POST | /articles/{id}/draft/publish | Publish an article draft |
POST | /articles/{article_id}/tags | Add a tag to an article |
DELETE | /articles/{article_id}/tags/{id} | Remove a tag from an article |
GET | /articles/{article_id}/versions | List article versions |
GET | /articles/{article_id}/versions/{id} | Retrieve an article version |
GET | /articles/search | Search for articles |
Example
List all articles, 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.articles.list();
console.log(result);Nine more languages
The same call exists in every SDK. See SDKs for the other nine.