Skip to main content
Content sources connect external CMS platforms (Contentful, Strapi, Sanity, etc.) to KaireonAI. Content is synced via webhooks or manual sync triggers and imported as content items.

GET /api/v1/content-sources

List all content sources for the tenant.

Response


POST /api/v1/content-sources

Create a new content source. Admin only.

Request Body

Example

Response (201)

Returns the created content source object.

GET /api/v1/content-sources/

Get a single content source by ID.

PUT /api/v1/content-sources/

Update a content source. Admin only.

Request Body

Same fields as POST, all optional.

Error Responses

The lookup is scoped by the (tenantId, id) compound key, so a PUT against an id owned by another tenant returns 404 — never 500.

DELETE /api/v1/content-sources/

Delete a content source. Admin only.

Response

204 No Content on success.

Error Responses


POST /api/v1/content-sources//sync

Trigger a manual sync from the content source. Fetches all content items from the CMS and upserts them as content items. Editor or Admin. Sync operations have a 120-second timeout and are capped at 5,000 items per sync.

Response

If the sync exceeds the timeout: