Connect retrieval source
Connect an external retrieval source to an environment and queue its first sync.
Required permission: retrieval.manage.
Request
- Base URLhttps://api.connic.co
- AuthHTTP bearer
Path parameters
ID of the project the API key belongs to.
Query parameters
Environment ID from GET /environments.
Request body
Source type: notion, confluence (Confluence Cloud), coda (Superhuman Docs), zendesk (Zendesk Help Center), sharepoint (SharePoint and OneDrive), or website.
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
Environment the source syncs into.
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.
Provider settings without integration_token, api_token, and client_secret. For code, deployment_id of the deployment whose files it holds.
active, or error after a failed sync. Updating config resets error to active.
Start time of the most recent successful sync; null until one succeeds.
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.
Changes
No recorded changes to this operation across all 17 revisions of this API.