Home//
REST API Reference
/- Retrieve an API template source
Create an API template source
Sync an API template source
List content import sources
Create a content import source
Delete a content import source
Retrieve a content import source
Update a content import source
List external pages
Create an external page (or update an external page by external ID)
Delete an external page
Retrieve an external page
Update an external page
API Template
API Template Source
Content Import Source
Content Import Sources
External Page
External Pages
Retrieve an API template...
You can retrieve an API template source, including its template, its variables and the status of its latest sync. The auth_token is never returned.
OAuth tokens must have the read_write_ai_content scope.
Security
bearerAuth
Intercom-Versionstring(intercom_version_preview)
Preview Intercom API version. Used for closed beta endpoints or other features under managed availability.
Default:"Preview"
Value:"Preview"
Example:Preview
- The production API serverhttps://api.intercom.io/ai/api_template_sources/{id}
- The european API serverhttps://api.eu.intercom.io/ai/api_template_sources/{id}
- The australian API serverhttps://api.au.intercom.io/ai/api_template_sources/{id}
curl -i -X GET \
https://api.intercom.io/ai/api_template_sources/4182 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Intercom-Version: Preview'API template source found
Always api_template_source.
Value:"api_template_source"
Example:"api_template_source"
The source's template, as saved. Top-level keys that aren't template fields are removed.
Example:
{ "name": "Example Docs", "base_url": "https://api.example.com/v1", "variables": [ "space_id" ], "auth": { "header": "Authorization", "value": "Bearer {token}" }, "tree": { "path": "/spaces/{space_id}/pages", "query": { … }, "nodes": [ … ], "children": "pages", "folder_if": [ … ], "folder_if_has_children": true, "content_if": [ … ] }, "item": { "path": "/spaces/{space_id}/pages/{page_id}", "node_values": { … } }, "mapping": { "id": [ … ], "title": [ … ], "body": [ … ], "updated_at": [ … ] }, "body_format": "html" }
The values of the template's variables, as strings. Values for names the template doesn't declare are removed.
Example:
{ "space_id": "help-center" }
Response
- API template source found
- No sync has started
{ "type": "api_template_source", "id": "4182", "template": { "name": "Example Docs", "base_url": "https://api.example.com/v1", "variables": [ … ], "auth": { … }, "tree": { … }, "item": { … }, "mapping": { … }, "body_format": "html" }, "variables": { "space_id": "help-center" }, "created_at": 1792713600, "latest_sync": { "id": "90817", "status": "success", "created_at": 1792713601, "updated_at": 1792713958 } }