retrieval

Connect retrieval source

Connect an external retrieval source to an environment and queue its first sync.

Required permission: retrieval.manage.

post/v1/projects/{project_id}/retrieval/sources

Request

  • Base URL
    https://api.connic.co
  • Auth
    HTTP bearer

Path parameters

project_id, string uuid required

ID of the project the API key belongs to.

Query parameters

environment_id, string uuid required

Environment ID from GET /environments.

Request body

CreateRetrievalSourceRequest required
type, string required

Source type: notion, confluence (Confluence Cloud), coda (Superhuman Docs), zendesk (Zendesk Help Center), sharepoint (SharePoint and OneDrive), or website.

name, string required
config, object required

Provider settings. Required keys: integration_token for notion; site_url, email, and api_token for confluence; api_token for coda; subdomain and locales for zendesk; tenant_id, client_id, client_secret, and site_urls or onedrive_users for sharepoint; start_url and crawl_permission: true for website. Every type also accepts namespace (default sources.<type>), sync_interval (15m, 1h, 6h, 12h, 24h, or 7d; default 24h, at least 12h for website), and on_delete (remove or keep; default remove).

Response

Successful Response

RetrievalSourceResponse required
id, string required
environment_id, string required

Environment the source syncs into.

type, string required

Source type: notion, confluence (Confluence Cloud), coda (Superhuman Docs), zendesk (Zendesk Help Center), sharepoint (SharePoint and OneDrive), or website. code is the source deployments create for the project's retrieval/ folder; it can't be updated or deleted.

name, string required
config, object required

Provider settings without integration_token, api_token, and client_secret. For code, deployment_id of the deployment whose files it holds.

status, string required

active, or error after a failed sync. Updating config resets error to active.

last_synced_at, string nullable required

Start time of the most recent successful sync; null until one succeeds.

last_error, string nullable required

Message from the most recent sync that failed or was skipped, or a JSON string with a file_issues list when it completed with file problems; null otherwise.

created_at, string required

Changes

No recorded changes to this operation across all 17 revisions of this API.