AI Content
With the AI Content APIs, you can create and manage External Pages and Content Import Sources for your Fin Content Library.
Operations
| Method | Endpoint | Description |
|---|---|---|
GET | /ai/content_import_sources | List content import sources |
POST | /ai/content_import_sources | Create a content import source |
GET | /ai/content_import_sources/{source_id} | Retrieve a content import source |
PUT | /ai/content_import_sources/{source_id} | Update a content import source |
DELETE | /ai/content_import_sources/{source_id} | Delete a content import source |
GET | /ai/external_pages | List external pages |
POST | /ai/external_pages | Create an external page (or update an external page by external ID) |
GET | /ai/external_pages/{page_id} | Retrieve an external page |
PUT | /ai/external_pages/{page_id} | Update an external page |
DELETE | /ai/external_pages/{page_id} | Delete an external page |
Example
List content import sources, 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.aiContent.listContentImportSources();
console.log(result);Nine more languages
The same call exists in every SDK. See SDKs for the other nine.