Skip to main content
Connectors pull documents from external systems (Confluence, Google Drive, Slack, and more) into the Hadiq.io search index. All connector endpoints require admin or curator role. The connector stores the configuration for a data source. A connector-credential pair (CC pair) links a connector to a set of credentials and controls the sync schedule.

Create a connector

Creates a new connector. The connector is not immediately linked to credentials or indexed — use the CC pair endpoints for that.

Request body

string
required
Human-readable name for the connector.
string
required
The source type. Examples: confluence, google_drive, slack, github, web, file.
string
required
How documents are ingested: poll (periodic sync), event (webhook-driven), or load_state (one-time load).
object
required
Source-specific configuration. The required keys depend on the connector type. For example, a Confluence connector requires wiki_base, space, and optionally page_id.
string
required
Access control mode: public, private, or sync (inherit permissions from the source).
integer
Re-sync interval in seconds. Set to null for a one-time index with no automatic refresh.
integer
How often (in seconds) to prune deleted documents from the index. Optional.
string (ISO 8601)
Only index documents updated after this timestamp.
array
Group IDs that have access to documents from this connector (Enterprise Edition only).

Response

integer
Numeric ID of the newly created connector.

List connectors

Returns all connectors visible to the authenticated user. System connectors are excluded from this list.

Query parameters

integer
Filter by a specific credential ID.

Response

An array of connector snapshots.
integer
Connector ID.
string
Connector name.
string
Source type.
string
Ingestion mode: poll, event, or load_state.
object
Source-specific configuration.
integer
Sync frequency in seconds, or null.
array
IDs of credentials linked to this connector.
string (ISO 8601)
Creation timestamp.
string (ISO 8601)
Last update timestamp.

Update a connector

Updates connector configuration. Accepts the same fields as the create request.

Path parameters

integer
required
ID of the connector to update.

Request body

Same as create connector. All fields may be updated.

Response

Returns the updated ConnectorSnapshot.

Trigger a manual sync

Queues an immediate indexing run for a connector. Use this to sync changes without waiting for the scheduled refresh_freq.

Request body

integer
required
ID of the connector to sync.
array
Specific credential IDs to run for. If omitted, all credentials linked to the connector are used.
boolean
default:"false"
When true, re-indexes all documents from scratch rather than only new or changed ones.

Response

boolean
Whether the sync was successfully queued.
string
Confirmation message.

Get CC pair details

Returns full details about a connector-credential pair, including indexing status, document counts, and sync history.

Path parameters

integer
required
The CC pair ID.

Response

integer
CC pair identifier.
string
Name of the CC pair.
string
Current status: active, paused, or deleting.
integer
Total documents currently in the index for this CC pair.
object
Embedded connector snapshot.
object
Embedded credential snapshot (sensitive fields masked).
string
Status of the most recent index attempt: success, failed, in_progress, or not_started.
string (ISO 8601)
Timestamp of the last successful sync.
boolean
Whether a sync is currently in progress.
string
public, private, or sync.

Pause or resume a CC pair

Sets the sync status of a connector-credential pair. Pausing stops all future indexing runs.

Path parameters

integer
required
The CC pair to update.

Request body

string
required
New status: active to resume, paused to pause.

Error codes