Content Snippets
Everything about your Content Snippets
Operations
| Method | Endpoint | Description |
|---|---|---|
GET | /content_snippets | List all content snippets |
POST | /content_snippets | Create a content snippet |
GET | /content_snippets/{id} | Retrieve a content snippet |
PUT | /content_snippets/{id} | Update a content snippet |
DELETE | /content_snippets/{id} | Delete a content snippet |
POST | /content_snippets/{content_snippet_id}/tags | Add a tag to a content snippet |
DELETE | /content_snippets/{content_snippet_id}/tags/{id} | Remove a tag from a content snippet |
Example
Retrieve a content snippet, 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.contentSnippets.get({
id: "-1",
});
console.log(result);Nine more languages
The same call exists in every SDK. See SDKs for the other nine.