Create a content import source

You can create a new content import source by sending a POST request to this endpoint.

SecurityHTTP: bearerAuth
Request
header Parameters
Intercom-Version
string (intercom_version)
Default: Unstable

Intercom API version.
By default, it's equal to the version set in the app package.

Enum: "1.0" "1.1" "1.2" "1.3" "1.4" "2.0" "2.1" "2.2" "2.3" "2.4" "2.5" "2.6" "2.7" "2.8" "2.9" "2.10" "2.11" "Unstable"
Example: Unstable
Request Body schema: application/json
sync_behavior
required
string

If you intend to create or update External Pages via the API, this should be set to api.

Value: "api"
status
string
Default: "active"

The status of the content import source.

Enum: "active" "deactivated"
url
required
string

The URL of the content import source.

post
/ai/content_import_sources
Request samples
application/json
{ "sync_behavior": "api", "url": "https://www.example.com" }
Responses

200

successful

Response Schema: application/json
type
required
string
Default: "content_import_source"

Always external_page

Value: "content_import_source"
id
required
integer

The unique identifier for the content import source which is given by Intercom.

last_synced_at
required
integer <date-time>

The time when the content import source was last synced.

sync_behavior
required
string

If you intend to create or update External Pages via the API, this should be set to api.

Enum: "api" "automatic" "manual"
status
required
string
Default: "active"

The status of the content import source.

Enum: "active" "deactivated"
url
required
string

The URL of the root of the external source.

created_at
required
integer <date-time>

The time when the content import source was created.

updated_at
required
integer <date-time>

The time when the content import source was last updated.

401

Unauthorized

Response samples
application/json
{ "id": 4, "type": "content_import_source", "last_synced_at": 1715701752, "status": "active", "url": "https://www.example.com", "sync_behavior": "api", "created_at": 1715701752, "updated_at": 1715701752 }