# AI Content

With the AI Content APIs, you can create and manage External Pages and Content Import Sources for your Fin Content Library.
 
*External Pages* are pages that you want Fin to be able to answer questions about. The API for External Pages is a great way to ingest into your Fin Content Library pages that are not publicly accessible and hence can't be crawled by Intercom.
 
*Content Import Sources* are the sources of those pages, and they are used to determine the default audience for the pages (configured via the UI). You should create a Content Import Source for each source of External Pages that you want to ingest into your Fin Content Library.
 
You can then iterate through the content from that source via its API and POST it to the External Pages endpoint. That endpoint has an *external_id* parameter which allows you to specify the identifier from the source. The endpoint will then either create a new External Page or update an existing one as appropriate.",

 - [GET /ai/content_import_sources](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/ai-content/listcontentimportsources.md): You can retrieve a list of all content import sources for a workspace.
 - [POST /ai/content_import_sources](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/ai-content/createcontentimportsource.md): You can create a new content import source by sending a POST request to this endpoint.
 - [DELETE /ai/content_import_sources/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/ai-content/deletecontentimportsource.md): You can delete a content import source by making a DELETE request this endpoint. This will also delete all external pages that were imported from this source.
 - [GET /ai/content_import_sources/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/ai-content/getcontentimportsource.md)
 - [PUT /ai/content_import_sources/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/ai-content/updatecontentimportsource.md): You can update an existing content import source.
 - [GET /ai/external_pages](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/ai-content/listexternalpages.md): You can retrieve a list of all external pages for a workspace.
 - [POST /ai/external_pages](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/ai-content/createexternalpage.md): You can create a new external page by sending a POST request to this endpoint. If an external page already exists with the specified source_id and external_id, it will be updated instead.
 - [DELETE /ai/external_pages/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/ai-content/deleteexternalpage.md): Sending a DELETE request for an external page will remove it from the content library UI and from being used for AI answers.
 - [GET /ai/external_pages/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/ai-content/getexternalpage.md): You can retrieve an external page.
 - [PUT /ai/external_pages/{id}](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/ai-content/updateexternalpage.md): You can update an existing external page (if it was created via the API).
 - [Content Import Source](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/ai-content/content_import_source.md): Schema: #/components/schemas/content_import_source
 - [Content Import Sources](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/ai-content/content_import_sources_list.md): Schema: #/components/schemas/content_import_sources_list
 - [External Page](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/ai-content/external_page.md): Schema: #/components/schemas/external_page
 - [External Pages](https://developers.intercom.com/docs/references/preview/rest-api/api.intercom.io/ai-content/external_pages_list.md): Schema: #/components/schemas/external_pages_list
